-
Notifications
You must be signed in to change notification settings - Fork 275
Matrix4
Adrien GIVRY edited this page Nov 15, 2021
·
4 revisions
Mathematic representation of a 4x4 Matrix of floats
- C++ related class:
OvMaths::FMatrix4
This usertype has no variables
| Name | Input | Output | Description |
|---|---|---|---|
| new | Matrix4 |
Default constructor | |
| new |
number: m00number: m01number: m02number: m03number: m10number: m11number: m12number: m13number: m20number: m21number: m22number: m23number: m30number: m31number: m32number: m33 |
Matrix4 |
| Name | Input | Output | Description |
|---|---|---|---|
| Identity | Matrix4 |
Returns an identity Matrix4 | |
| IsIdentity |
Matrix4: instance |
boolean |
Returns true if the matrix is identity |
| Determinant |
Matrix4: instance |
number |
Returns matrix determinant |
| Transpose |
Matrix4: instance |
Matrix4 |
Returns the transpose of the given matrix |
| Minor |
Matrix4: instance |
number |
Returns matrix minor |
| Inverse |
Matrix4: instance |
Matrix4 |
Rturns the inverse of the given matrix |
| Translation |
Vector3: translation |
Matrix4 |
Returns a translation matrix from the given translation |
| Translate |
Matrix4: instanceVector3: translation |
Matrix4 |
Returns a matrix translated using the given translation |
| RotationOnAxisX |
number: xAngle |
Matrix4 |
Returns a rotation matrix constructed using the given X axis angle |
| RotateOnAxisX |
Matrix4: instancenumber: xAngle |
Matrix4 |
Returns a matrix rotated around the given X axis angle |
| RotationOnAxisY |
number: yAngle |
Matrix4 |
Returns a rotation matrix constructed using the given Y axis angle |
| RotateOnAxisY |
Matrix4: instancenumber: yAngle |
Matrix4 |
Returns a matrix rotated around the given Y axis angle |
| RotationOnAxisZ |
number: zAngle |
Matrix4 |
Returns a rotation matrix constructed using the given Z axis angle |
| RotateOnAxisZ |
Matrix4: instancenumber: zAngle |
Matrix4 |
Returns a matrix rotated around the given Z axis angle |
| RotationYXZ |
number: angle |
Matrix4 |
Returns a rotation matrix constructed using the given axis angle (Applied to all angles in YXZ order) |
| RotateYXZ |
Matrix4: instancenumber: angle |
Matrix4 |
Returns a rotation matrix rotated using the given axis angle (Applied to all angles in YXZ order) |
| Rotation |
Quaternion: rotation |
Matrix4 |
Returns a rotation matrix created from the given quaternion |
| Rotate |
Matrix4: instanceQuaternion: rotation |
Matrix4 |
Returns a matrix rotated using the given quaternion |
| Scaling |
Vector3: scale |
Matrix4 |
Returns a scaling matrix from the given scale |
| Scale |
Matrix4: instanceVector3: scale |
Matrix4 |
Returns a scaled matrix using the given scale |
| GetRow |
Matrix4: instancenumber: row |
Vector4 |
Returns the given row |
| GetColumn |
Matrix4: instancenumber: column |
Vector4 |
Returns the given column |
| CreatePerspective |
number: fovnumber: aspectRationumber: nearnumber: far |
Matrix4 |
Creates a perspective matrix |
| CreateView |
number: eyeXnumber: eyeYnumber: eyeZnumber: lookXnumber: lookYnumber: lookZnumber: upXnumber: upYnumber: upZ |
Matrix4 |
Creates a view matrix |
| CreateFrustum |
number: leftnumber: rightnumber: bottomnumber: topnumber: nearnumber: far |
Matrix4 |
Create a frustum matrix |
| Get |
Matrix4: instancenumber: rownumber: column |
number |
Returns element at index (row,column) |
| Set |
Matrix4: instancenumber: rownumber: columnnumber: value |
Sets element at index (row,column) |
| Operation | Description |
|---|---|
Matrix4 + Matrix4 |
Adds two Matrix4 |
Matrix4 - number |
Substracts a Matrix4 and a number |
Matrix4 - Matrix4 |
Substracts two Matrix4 |
Matrix4 * number |
Multiplies each component of a Matrix4 by a number |
Matrix4 * Vector4 |
Multiplies a Matrix4 by a Vector4 |
Matrix4 * Matrix4 |
Multiplies two Matrix4 |
Matrix4 / number |
Divides each component of a Matrix4 by a number |
Matrix4 / Matrix4 |
Divides two Matrix4 |
to_string(Matrix4) |
Converts a Matrix4 to a string |
