Added new osg::AnimationPath which is contaner for a set of key frames for

defining an animation path.  To be used with osg::Transform etc.
This commit is contained in:
Robert Osfield
2002-02-27 00:58:54 +00:00
parent 7c0eb0f380
commit 1bdebcf174
5 changed files with 147 additions and 2 deletions

View File

@@ -224,10 +224,19 @@ class SG_EXPORT Quat
void slerp ( const float t, const Quat& from, const Quat& to);
/** Set quaternion to be equivalent to specified matrix.*/
void set( const osg::Matrix& m );
void set( const Matrix& m );
/** Get the equivalent matrix for this quaternion.*/
void get( osg::Matrix& m ) const;
void get( Matrix& m ) const;
/** Get the equivalent matrix for this quaternion.*/
Matrix getMatrix() const
{
Matrix matrix;
get(matrix);
return matrix;
}
friend inline std::ostream& operator << (std::ostream& output, const Quat& vec);