Added makeRotate(heading,pitch,roll) to Quat in prep for new classes for

animation paths.
This commit is contained in:
Robert Osfield
2002-02-26 20:01:04 +00:00
parent 260fd17573
commit 7c0eb0f380
3 changed files with 27 additions and 18 deletions

View File

@@ -210,7 +210,11 @@ class SG_EXPORT Quat
are co-incident or opposite in direction.*/
void makeRotate( const Vec3& vec1, const Vec3& vec2 );
/** Return the angle and vector components represented by the quaternion.*/
/** make a rotation Quat from euler angles.*/
void makeRotate( float heading, float pitch, float roll);
/** Return the angle and vector components represented by the quaternion.*/
void getRotate ( float& angle, float& x, float& y, float& z ) const;
/** Return the angle and vector represented by the quaternion.*/
void getRotate ( float& angle, Vec3& vec ) const;