Cyclone | Cyclone: cyclone::Matrix4 Class Reference |
#include <core.h>
Public Member Functions | |
Matrix4 () | |
Creates an identity matrix. | |
void | setDiagonal (real a, real b, real c) |
Sets the matrix to be a diagonal matrix with the given coefficients. | |
Matrix4 | operator * (const Matrix4 &o) const |
Returns a matrix which is this matrix multiplied by the given other matrix.Matrix4MatrixMultiply. | |
Vector3 | operator * (const Vector3 &vector) const |
Transform the given vector by this matrix.Matrix4VectorMultiply. | |
Vector3 | transform (const Vector3 &vector) const |
Transform the given vector by this matrix. | |
real | getDeterminant () const |
Returns the determinant of the matrix. | |
void | setInverse (const Matrix4 &m) |
Sets the matrix to be the inverse of the given matrix. | |
Matrix4 | inverse () const |
Returns a new matrix containing the inverse of this matrix. | |
void | invert () |
Inverts the matrix.Matrix4Inverse. | |
Vector3 | transformDirection (const Vector3 &vector) const |
Transform the given direction vector by this matrix. | |
Vector3 | transformInverseDirection (const Vector3 &vector) const |
Transform the given direction vector by the transformational inverse of this matrix.TransformDirection. | |
Vector3 | transformInverse (const Vector3 &vector) const |
Transform the given vector by the transformational inverse of this matrix.TransformInverse. | |
Vector3 | getAxisVector (int i) const |
Gets a vector representing one axis (i.e. | |
void | setOrientationAndPos (const Quaternion &q, const Vector3 &pos) |
Sets this matrix to be the rotation matrix corresponding to the given quaternion.OrientationAndPosToMatrix4. | |
void | fillGLArray (float array[16]) const |
Fills the given array with this transform matrix, so it is usable as an open-gl transform matrix. | |
Public Attributes | |
real | data [12] |
Holds the transform matrix data in array form.Matrix4Intro. |
The matrix has 12 elements, it is assumed that the remaining four are (0,0,0,1); producing a homogenous matrix.
|
Creates an identity matrix.
|
|
Fills the given array with this transform matrix, so it is usable as an open-gl transform matrix. OpenGL uses a column major format, so that the values are transposed as they are written. |
|
Gets a vector representing one axis (i.e. one column) in the matrix.
|
|
Returns the determinant of the matrix.
|
|
Returns a new matrix containing the inverse of this matrix.
|
|
Inverts the matrix.Matrix4Inverse.
|
|
Transform the given vector by this matrix.Matrix4VectorMultiply.
|
|
Returns a matrix which is this matrix multiplied by the given other matrix.Matrix4MatrixMultiply.
|
|
Sets the matrix to be a diagonal matrix with the given coefficients.
|
|
Sets the matrix to be the inverse of the given matrix.
|
|
Sets this matrix to be the rotation matrix corresponding to the given quaternion.OrientationAndPosToMatrix4.
|
|
Transform the given vector by this matrix.
|
|
Transform the given direction vector by this matrix. /<TransformDirection
|
|
Transform the given vector by the transformational inverse of this matrix.TransformInverse. /<TransformInverse
|
|
Transform the given direction vector by the transformational inverse of this matrix.TransformDirection. /<TransformDirection
|
|
Holds the transform matrix data in array form.Matrix4Intro.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:21 2006). |