|
| Matrix3 () |
| Create a 3x3 identity matrix.
|
|
| Matrix3 (float rawArray[]) |
| Creates a 3x3 matrix from an array of 9 values.
|
|
| Matrix3 (float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2) |
| Creates a 3x3 matrix from 9 given values.
|
|
| Matrix3 (Vector3 one, Vector3 two, Vector3 three) |
| Creates a 3x3 matrix from 3 Vector3s where each Vector is a row.
|
|
Matrix3 | getTranspose () |
| Returns the transpose of this matrix as a Matrix3. More...
|
|
Matrix3 | getInverse () |
| Returns the inverse of this matrix as a Matrix3. More...
|
|
float * | getAsArray () |
| Get this matrix as an array of values rather than a matrix This pointer is to an array on the stack which will be deleted when this matrix is disposed of. More...
|
|
Matrix3 | operator* (Matrix3 mat) |
| Multiplies this Matrix3 by another given Matrix3 and returns the resulting matrix. More...
|
|
Vector3 | operator* (Vector3 vec) |
| Multiplies this Matrix3 by a given Vector3 and returns the resulting Vector3. More...
|
|
| operator Matrix4 () |
| Operator to convert this Matrix3 to a Matrix4 The resulting vector has all its new values set to 0 except for the last place which is set to a 1. More...
|
|
float * | operator[] (int i) |
| Fetches a row of this Matrix at the index i The subsequent row can also use this operator so you can access values in this matrix with two [] operators: myMatrix[0][1]. More...
|
|
float * Matrix3::getAsArray |
( |
| ) |
|
Get this matrix as an array of values rather than a matrix This pointer is to an array on the stack which will be deleted when this matrix is disposed of.
- Returns
- A float array containing all the values in this matrix
Returns the inverse of this matrix as a Matrix3.
- Returns
- A Matrix3 that is the inverse of this matrix
Returns the transpose of this matrix as a Matrix3.
- Returns
- A Matrix3 that is the transpoe of this matrix
Operator to convert this Matrix3 to a Matrix4 The resulting vector has all its new values set to 0 except for the last place which is set to a 1.
The new Matrix will be laid out: x1, y1, z1, 0, x2, y2, z2, 0, x3, y3, z3, 0, 0, 0, 0, 1
Multiplies this Matrix3 by another given Matrix3 and returns the resulting matrix.
- Parameters
-
mat | The other Matrix3 to multiply into this one |
- Returns
- The product of this matrix * mat as a Matrix3
Multiplies this Matrix3 by a given Vector3 and returns the resulting Vector3.
- Parameters
-
vec | The Vector3 to multiply into this matrix |
- Returns
- The product of this matrix * vec as a Vector3
float * Matrix3::operator[] |
( |
int |
i | ) |
|
Fetches a row of this Matrix at the index i The subsequent row can also use this operator so you can access values in this matrix with two [] operators: myMatrix[0][1].
- Parameters
-
i | The index of the row to fetch |
- Returns
- A pointer to a float array which is a row of this matrix This will throw an index out of range exception if you try to access a 4th row with index 3.
The documentation for this class was generated from the following files: