Class: etk::Matrix4
Synopsis:
+ void identity (void);
+ Matrix4 (void);
+ Matrix4 (const Matrix4 & obj);
+ Matrix4 (float a1,
float b1,
float c1,
float d1,
float a2,
float b2,
float c2,
float d2,
float a3,
float b3,
float c3,
float d3,
float a4,
float b4,
float c4,
float d4);
+ Matrix4 (float * obj);
+ ~Matrix4 (void);
+ const Matrix4 & operator= (const Matrix4 & obj);
+ bool operator== (const Matrix4 & obj);
+ bool operator!= (const Matrix4 & obj);
+ const Matrix4 & operator+= (const Matrix4 & obj);
+ Matrix4 operator+ (const Matrix4 & obj);
+ const Matrix4 & operator-= (const Matrix4 & obj);
+ Matrix4 operator- (const Matrix4 & obj);
+ const Matrix4 & operator*= (const Matrix4 & obj);
+ Matrix4 operator* (const Matrix4 & obj);
+ vec3 operator* (const vec3 & point);
+ void transpose (void);
+ void scale (const vec3 & p);
+ void scale (float sx,
float sy,
float sz);
+ void rotate (const vec3 & vect,
float angleRad);
+ void translate (const vec3 & vect);
+ float coFactor (int32_t row,
int32_t col);
+ float determinant (void);
+ Matrix4 invert (void);
Detail:
identity ()
void identity(void);
etk::Matrix4 ()
Matrix4(void);
etk::Matrix4 ()
Matrix4(const Matrix4 & obj);
etk::Matrix4 ()
Matrix4(float a1,
float b1,
float c1,
float d1,
float a2,
float b2,
float c2,
float d2,
float a3,
float b3,
float c3,
float d3,
float a4,
float b4,
float c4,
float d4);
etk::Matrix4 ()
Matrix4(float * obj);
etk::~Matrix4 ()
~Matrix4(void);
operator= ()
const Matrix4 & operator=(const Matrix4 & obj);
operator== ()
bool operator==(const Matrix4 & obj);
operator!= ()
bool operator!=(const Matrix4 & obj);
operator+= ()
const Matrix4 & operator+=(const Matrix4 & obj);
operator+ ()
Matrix4 operator+(const Matrix4 & obj);
operator-= ()
const Matrix4 & operator-=(const Matrix4 & obj);
operator- ()
Matrix4 operator-(const Matrix4 & obj);
operator*= ()
const Matrix4 & operator*=(const Matrix4 & obj);
operator* ()
Matrix4 operator*(const Matrix4 & obj);
operator* ()
vec3 operator*(const vec3 & point);
transpose ()
void transpose(void);
scale ()
void scale(const vec3 & p);
scale ()
void scale(float sx,
float sy,
float sz);
rotate ()
void rotate(const vec3 & vect,
float angleRad);
Makes a rotation matrix about an arbitrary axis.
Parameter [input]: vect vector to apply the angle.
Parameter [input]: angleRad angle to apply.
translate ()
void translate(const vec3 & vect);
Makes a translation of the matrix
Parameter [input]: vect Translation to apply.
coFactor ()
float coFactor(int32_t row,
int32_t col);
Computes a cofactor. Used for matrix inversion.
Parameter [input]: row Id of raw.
Parameter [input]: col Id of colomn.
Return: the coFactorValue.
determinant ()
float determinant(void);
Computes the determinant of the matrix.
Return: The determinent Value.
invert ()
Matrix4 invert(void);
Inverts the matrix.
Notes: The determinant must be != 0, otherwithe the matrix can't be inverted.
Return: The inverted matrix.
identity ()
void identity(void);
etk::Matrix4 ()
Matrix4(void);
etk::Matrix4 ()
Matrix4(const Matrix4 & obj);
etk::Matrix4 ()
Matrix4(float a1, float b1, float c1, float d1, float a2, float b2, float c2, float d2, float a3, float b3, float c3, float d3, float a4, float b4, float c4, float d4);
etk::Matrix4 ()
Matrix4(float * obj);
etk::~Matrix4 ()
~Matrix4(void);
operator= ()
const Matrix4 & operator=(const Matrix4 & obj);
operator== ()
bool operator==(const Matrix4 & obj);
operator!= ()
bool operator!=(const Matrix4 & obj);
operator+= ()
const Matrix4 & operator+=(const Matrix4 & obj);
operator+ ()
Matrix4 operator+(const Matrix4 & obj);
operator-= ()
const Matrix4 & operator-=(const Matrix4 & obj);
operator- ()
Matrix4 operator-(const Matrix4 & obj);
operator*= ()
const Matrix4 & operator*=(const Matrix4 & obj);
operator* ()
Matrix4 operator*(const Matrix4 & obj);
operator* ()
vec3 operator*(const vec3 & point);
transpose ()
void transpose(void);
scale ()
void scale(const vec3 & p);
scale ()
void scale(float sx, float sy, float sz);
rotate ()
void rotate(const vec3 & vect, float angleRad);
Makes a rotation matrix about an arbitrary axis.
-
Parameter [input]: vect vector to apply the angle.
Parameter [input]: angleRad angle to apply.
translate ()
void translate(const vec3 & vect);
Makes a translation of the matrix
-
Parameter [input]: vect Translation to apply.
coFactor ()
float coFactor(int32_t row, int32_t col);
Computes a cofactor. Used for matrix inversion.
-
Parameter [input]: row Id of raw.
Parameter [input]: col Id of colomn.
Return: the coFactorValue.
determinant ()
float determinant(void);
Computes the determinant of the matrix.
-
Return: The determinent Value.
invert ()
Matrix4 invert(void);
Inverts the matrix.
Notes: The determinant must be != 0, otherwithe the matrix can't be inverted.
-
Return: The inverted matrix.