In file include/csgeom/math3d.h:

class csMatrix3

A 3x3 matrix

Inheritance:


Public Methods

inline csVector3 Col1()
Get the first column of this matrix as a vector.
inline csVector3 Col2()
Get the second column of this matrix as a vector.
inline csVector3 Col3()
Get the third column of this matrix as a vector.
csMatrix3()
Construct a matrix, initialized to be the identity.
csMatrix3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
Construct a matrix and initialize it.
float Determinant()
Compute the determinant of this matrix.
inline csMatrix3 GetInverse()
Return the inverse of this matrix.
csMatrix3 GetTranspose()
Return the transpose of this matrix.
void Identity()
Set this matrix to the identity matrix.
void Invert()
Invert this matrix.
friend bool operator!= (const csMatrix3& m1, const csMatrix3& m2)
Check if two matricies are not equal.
friend csMatrix3 operator* (float f, const csMatrix3& m)
Multiply a matrix and a scalar.
inline friend csVector3 operator* (const csMatrix3& m, const csVector3& v)
Multiply a vector by a matrix (transform it).
friend csMatrix3 operator* (const csMatrix3& m, float f)
Multiply a matrix and a scalar.
friend csMatrix3 operator* (const csMatrix3& m1, const csMatrix3& m2)
Multiply two matricies.
csMatrix3& operator*= (float s)
Multiply this matrix with a scalar.
csMatrix3& operator*= (const csMatrix3& m)
Multiply another matrix with this matrix.
inline csMatrix3 operator+ ()
Unary + operator.
friend csMatrix3 operator+ (const csMatrix3& m1, const csMatrix3& m2)
Add two matricies.
csMatrix3& operator+= (const csMatrix3& m)
Add another matrix to this matrix.
friend csMatrix3 operator- (const csMatrix3& m1, const csMatrix3& m2)
Subtract two matricies.
inline csMatrix3 operator- ()
Unary - operator.
csMatrix3& operator-= (const csMatrix3& m)
Subtract another matrix from this matrix.
friend csMatrix3 operator/ (const csMatrix3& m, float f)
Divide a matrix by a scalar.
csMatrix3& operator/= (float s)
Divide this matrix by a scalar.
friend bool operator< (const csMatrix3& m, float f)
Test if each component of a matrix is less than a small epsilon value.
friend bool operator== (const csMatrix3& m1, const csMatrix3& m2)
Check if two matricies are equal.
friend bool operator> (float f, const csMatrix3& m)
Test if each component of a matrix is greater than a small epsilon value.
inline csVector3 Row1()
Get the first row of this matrix as a vector.
inline csVector3 Row2()
Get the second row of this matrix as a vector.
inline csVector3 Row3()
Get the third row of this matrix as a vector.
inline void Set(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
Set matrix values.
void Transpose()
Transpose this matrix.

Documentation

A 3x3 matrix
csMatrix3()
Construct a matrix, initialized to be the identity.

csMatrix3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
Construct a matrix and initialize it.

inline csVector3 Row1()
Get the first row of this matrix as a vector.

inline csVector3 Row2()
Get the second row of this matrix as a vector.

inline csVector3 Row3()
Get the third row of this matrix as a vector.

inline csVector3 Col1()
Get the first column of this matrix as a vector.

inline csVector3 Col2()
Get the second column of this matrix as a vector.

inline csVector3 Col3()
Get the third column of this matrix as a vector.

inline void Set(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
Set matrix values.

csMatrix3& operator+= (const csMatrix3& m)
Add another matrix to this matrix.

csMatrix3& operator-= (const csMatrix3& m)
Subtract another matrix from this matrix.

csMatrix3& operator*= (const csMatrix3& m)
Multiply another matrix with this matrix.

csMatrix3& operator*= (float s)
Multiply this matrix with a scalar.

csMatrix3& operator/= (float s)
Divide this matrix by a scalar.

inline csMatrix3 operator+ ()
Unary + operator.

inline csMatrix3 operator- ()
Unary - operator.

void Transpose()
Transpose this matrix.

csMatrix3 GetTranspose()
Return the transpose of this matrix.

inline csMatrix3 GetInverse()
Return the inverse of this matrix.

void Invert()
Invert this matrix.

float Determinant()
Compute the determinant of this matrix.

void Identity()
Set this matrix to the identity matrix.

friend csMatrix3 operator+ (const csMatrix3& m1, const csMatrix3& m2)
Add two matricies.

friend csMatrix3 operator- (const csMatrix3& m1, const csMatrix3& m2)
Subtract two matricies.

friend csMatrix3 operator* (const csMatrix3& m1, const csMatrix3& m2)
Multiply two matricies.

inline friend csVector3 operator* (const csMatrix3& m, const csVector3& v)
Multiply a vector by a matrix (transform it).

friend csMatrix3 operator* (const csMatrix3& m, float f)
Multiply a matrix and a scalar.

friend csMatrix3 operator* (float f, const csMatrix3& m)
Multiply a matrix and a scalar.

friend csMatrix3 operator/ (const csMatrix3& m, float f)
Divide a matrix by a scalar.

friend bool operator== (const csMatrix3& m1, const csMatrix3& m2)
Check if two matricies are equal.

friend bool operator!= (const csMatrix3& m1, const csMatrix3& m2)
Check if two matricies are not equal.

friend bool operator< (const csMatrix3& m, float f)
Test if each component of a matrix is less than a small epsilon value.

friend bool operator> (float f, const csMatrix3& m)
Test if each component of a matrix is greater than a small epsilon value.


Direct child classes:
csZRotMatrix3
csYRotMatrix3
csXRotMatrix3

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de