Introduce new Matrix::invert() implementation from Ravi Mathur, with tweaks

by Robert Osfield.
This commit is contained in:
Robert Osfield
2004-01-12 14:22:18 +00:00
parent c3b888c862
commit 4765c8744d
4 changed files with 209 additions and 12 deletions

View File

@@ -167,7 +167,14 @@ class SG_EXPORT Matrixf
/** Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. */
void getLookAt(Vec3& eye,Vec3& center,Vec3& up,value_type lookDistance=1.0f);
bool invert( const Matrixf& );
/** invert the matrix rhs placing result in this matrix.*/
bool invert( const Matrixf& rhs);
/** full 4x4 matrix invert. */
bool invert_4x4_orig( const Matrixf& );
/** full 4x4 matrix invert. */
bool invert_4x4_new( const Matrixf& );
//basic utility functions to create new matrices
inline static Matrixf identity( void );