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

@@ -168,7 +168,14 @@ class SG_EXPORT Matrixd
/** 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 Matrixd& );
/** invert the matrix rhs. */
bool invert( const Matrixd& rhs);
/** full 4x4 matrix invert. */
bool invert_4x4_orig( const Matrixd& );
/** full 4x4 matrix invert. */
bool invert_4x4_new( const Matrixd& );
//basic utility functions to create new matrices
inline static Matrixd identity( void );