From Vivek Rajan, MatrixDecomposition implementaion, adapted by Robert Osfield

to be part of osg::Matrixf and osg::Matrixd classes.
This commit is contained in:
Robert Osfield
2007-02-10 18:01:37 +00:00
parent 760cfeaadb
commit f1a82f35b2
5 changed files with 716 additions and 5 deletions

View File

@@ -123,7 +123,19 @@ class OSG_EXPORT Matrixf
value_type angle3, const Vec3d& axis3);
/** decompose the matrix into translation, rotation, scale and scale orietation.*/
void decompose( osg::Vec3f& translation,
osg::Quat& rotation,
osg::Vec3f& scale,
osg::Quat& so ) const;
/** decompose the matrix into translation, rotation, scale and scale orietation.*/
void decompose( osg::Vec3d& translation,
osg::Quat& rotation,
osg::Vec3d& scale,
osg::Quat& so ) const;
/** Set to an orthographic projection.
* See glOrtho for further details.
*/