changed the docs of quaternion to state the euler angles used are in radians, this seems to have confused someone on the forums, so it did me before. check I'm right about this.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@730 dfc29bdd-3216-0410-991c-e03cc46cb475
master
lukeph 2007-06-25 02:11:52 +00:00
parent d4d4da094f
commit cd36b187b4
1 changed files with 4 additions and 3 deletions

View File

@ -25,10 +25,10 @@ class quaternion
//! Constructor
quaternion(f32 X, f32 Y, f32 Z, f32 W);
//! Constructor which converts euler angles to a quaternion
//! Constructor which converts euler angles (radians) to a quaternion
quaternion(f32 x, f32 y, f32 z);
//! Constructor which converts euler angles to a quaternion
//! Constructor which converts euler angles (radians) to a quaternion
quaternion(const vector3df& vec);
//! Constructor which converts a matrix to a quaternion
@ -67,7 +67,7 @@ class quaternion
//! sets new quaternion
inline void set(f32 x, f32 y, f32 z, f32 w);
//! sets new quaternion based on euler angles
//! sets new quaternion based on euler angles (radians)
inline void set(f32 x, f32 y, f32 z);
//! normalizes the quaternion
@ -96,6 +96,7 @@ class quaternion
//! Fills an angle (radians) around an axis (unit vector)
void toAngleAxis (f32 &angle, vector3df& axis) const;
//! Output this quaternion to an euler angle (radians)
void toEuler(vector3df& euler) const;
//! set quaternion to identity