38 virtual osg::Matrix SetupMatrix(CStdFPoint &localPos, CStdFPoint &localRot);
39 virtual CStdFPoint EulerRotationFromMatrix(osg::Matrix osgMT);
41 static CStdFPoint EulerRotationFromMatrix_Static(osg::Matrix osgMT);
44 static void Print(
const osg::Matrix& matrix );
46 static void Print(
const osg::Vec3& vec );
48 static void Print(
const osg::Vec4& vec );
51 static float ClampUnity(
float x );
56 static void Transpose( osg::Matrix& dest,
const osg::Matrix& src );
69 static osg::Vec3 GetRow3(
const osg::Matrix& matrix,
int row );
70 static osg::Vec4 GetRow4(
const osg::Matrix& matrix,
int row );
75 static void SetRow( osg::Matrix& matrix,
const osg::Vec3& vec,
int row );
76 static void SetRow( osg::Matrix& matrix,
const osg::Vec4& vec,
int row );
84 static void HprToMatrix( osg::Matrix& rotation,
const osg::Vec3& hpr );
93 static void PositionAndHprToMatrix( osg::Matrix& rotation,
const osg::Vec3& xyz,
const osg::Vec3& hpr );
95 static void PositionAndHprRadToMatrix( osg::Matrix& rotation,
const osg::Vec3& xyz,
const osg::Vec3& hpr );
102 static void MatrixToHpr( osg::Vec3& hpr,
const osg::Matrix& rotation );
109 static void MatrixToHprRad(osg::Vec3& hpr,
const osg::Matrix& rotation);
118 static void MatrixToHprAndPosition( osg::Vec3& xyz, osg::Vec3& hpr,
const osg::Matrix& rotation );
126 static void TransformVec3(osg::Vec3& xyz,
const osg::Matrix& transformMat);
135 static void TransformVec3(osg::Vec3& vec_in,
const osg::Vec3& xyz,
const osg::Matrix& transformMat);
Classes for implementing the cm-labs vortex physics engine for AnimatLab.