add a transpose method for 4x4
and a transpose3x3 to transpose only orthogonal part of a mat4x4
This commit is contained in:
@@ -242,6 +242,12 @@ class OSG_EXPORT Matrixd
|
||||
/** full 4x4 matrix invert. */
|
||||
bool invert_4x4( const Matrixd& rhs);
|
||||
|
||||
/** transpose a matrix */
|
||||
bool transpose(const Matrixd&rhs);
|
||||
|
||||
/** transpose orthogonal part of the matrix **/
|
||||
bool transpose3x3(const Matrixd&rhs);
|
||||
|
||||
/** ortho-normalize the 3x3 rotation & scale matrix */
|
||||
void orthoNormalize(const Matrixd& rhs);
|
||||
|
||||
|
||||
@@ -242,6 +242,12 @@ class OSG_EXPORT Matrixf
|
||||
/** full 4x4 matrix invert. */
|
||||
bool invert_4x4( const Matrixf& rhs);
|
||||
|
||||
/** transpose matrix **/
|
||||
bool transpose(const Matrixf&rhs);
|
||||
|
||||
/** transpose orthogonal part of the matrix **/
|
||||
bool transpose3x3(const Matrixf&rhs);
|
||||
|
||||
/** ortho-normalize the 3x3 rotation & scale matrix */
|
||||
void orthoNormalize(const Matrixf& rhs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user