Public Member Functions | |
Matrix4 (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) | |
Matrix3 | GetMatrix3 () |
Matrix4 | Inverse () |
Matrix4 | Transpose () |
void | MakeFloatArray (float[] floats) |
override string | ToString () |
override int | GetHashCode () |
override bool | Equals (object obj) |
Static Public Member Functions | |
Matrix4 | Multiply (Matrix4 left, Matrix4 right) |
Matrix4 | operator * (Matrix4 left, Matrix4 right) |
Vector3 | Multiply (Matrix4 matrix, Vector3 vector) |
Vector3 | operator * (Matrix4 matrix, Vector3 vector) |
Matrix4 | operator * (Matrix4 left, float scalar) |
Matrix4 | Add (Matrix4 left, Matrix4 right) |
Matrix4 | operator+ (Matrix4 left, Matrix4 right) |
Matrix4 | Subtract (Matrix4 left, Matrix4 right) |
Matrix4 | operator- (Matrix4 left, Matrix4 right) |
bool | operator== (Matrix4 left, Matrix4 right) |
bool | operator!= (Matrix4 left, Matrix4 right) |
Matrix4 | FromMatrix3 (Matrix3 right) |
implicit | operator Matrix4 (Matrix3 right) |
Public Attributes | |
float | m00 |
float | m01 |
float | m02 |
float | m03 |
float | m10 |
float | m11 |
float | m12 |
float | m13 |
float | m20 |
float | m21 |
float | m22 |
float | m23 |
float | m30 |
float | m31 |
float | m32 |
float | m33 |
Properties | |
Matrix4 | Identity |
Matrix4 | Zero |
Vector3 | Translation |
Vector3 | Scale |
float | this [int row, int col] |
float | Determinant |
|
Creates a new Matrix4 with all the specified parameters. |
|
Used to add two matrices together. |
|
Compares this Matrix to another object. This should be done because the equality operators (==, !=) have been overriden by this class. |
|
Used to allow assignment from a Matrix3 to a Matrix4 object. |
|
Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. <p/> The standard implementation is a simple XOR operation between all local member variables. |
|
Returns a 3x3 portion of this 4x4 matrix. |
|
Returns an inverted 4d matrix. |
|
|
|
Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. <p/> This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w. A Matrix4. A Vector3. A new vector. |
|
Used to multiply (concatenate) two 4x4 Matrices. |
|
Used to multiply a Matrix4 object by a scalar value.. |
|
Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. <p/> This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w. A Matrix4. A Vector3. A new vector. |
|
Used to multiply (concatenate) two 4x4 Matrices. |
|
Used to allow assignment from a Matrix3 to a Matrix4 object. |
|
Compares two Matrix4 instances for inequality. true if the Matrix 4 instances are not equal, false otherwise. |
|
Used to add two matrices together. |
|
Used to subtract two matrices. |
|
Compares two Matrix4 instances for equality. true if the Matrix 4 instances are equal, false otherwise. |
|
Used to subtract two matrices. |
|
Overrides the Object.ToString() method to provide a text representation of a Matrix4. A string representation of a vector3. |
|
Swap the rows of the matrix with the columns. A transposed Matrix. |
|
Gets the determinant of this matrix. |
|
Returns a matrix with the following form: | 1,0,0,0 | | 0,1,0,0 | | 0,0,1,0 | | 0,0,0,1 | |
|
Gets/Sets the Translation portion of the matrix. |Sx 0 0 0 | | 0 Sy 0 0 | | 0 0 Sz 0 | | 0 0 0 0 | |
|
Allows the Matrix to be accessed like a 2d array (i.e. matrix[2,3]) This indexer is only provided as a convenience, and is not recommended for use in intensive applications. |
|
Gets/Sets the Translation portion of the matrix. | 0 0 0 Tx| | 0 0 0 Ty| | 0 0 0 Tz| | 0 0 0 1 | |
|
Returns a matrix with all elements set to 0. |