-
Notifications
You must be signed in to change notification settings - Fork 232
Matrix3
Adrien GIVRY edited this page Sep 26, 2020
·
3 revisions
Mathematic representation of a 3x3 Matrix of floats
- C++ related class:
OvMaths::FMatrix3
This usertype has no variables
Name | Input | Output | Description |
---|---|---|---|
new | Matrix3 |
Default constructor | |
new |
number : value |
Matrix3 |
Constructor setting all components to the given value |
new |
number : m00number : m01number : m02number : m10number : m11number : m12number : m20number : m21number : m22 |
Matrix3 |
Instantiate a Matrix3 with all the given component values |
Name | Input | Output | Description |
---|---|---|---|
Identity | Matrix3 |
Returns an identity Matrix3 | |
IsIdentity |
Matrix3 : instance |
boolean |
Returns true if the matrix is identity |
Determinant |
Matrix3 : instance |
number |
Returns matrix determinant |
Transpose |
Matrix3 : instance |
Matrix3 |
Returns the transpose of the given matrix |
Cofactor |
Matrix3 : instance |
Matrix3 |
Returns the cofactor of the given matrix |
Minor |
Matrix3 : instance |
Matrix3 |
Returns the minor of the given matrix |
Adjoint |
Matrix3 : instance |
Matrix3 |
Returns the adjoint of the given matrix |
Inverse |
Matrix3 : instance |
Matrix3 |
Returns the inverse of the given matrix |
Translation |
Vector2 : translation |
Matrix3 |
Returns a translation matrix from the given translation |
Translate |
Matrix3 : instanceVector2 : translation |
Matrix3 |
Returns a matrix translated using the given translation |
Rotation |
number : angle |
Matrix3 |
Returns a rotation matrix from the given rotation angle (degrees) |
Rotate |
Matrix3 : instancenumber : angle |
Matrix3 |
Returns a matrix rotated using the given rotation angle (degrees) |
Scaling |
Vector2 : scale |
Matrix3 |
Returns a scaling matrix from the given scale |
Scale |
Matrix3 : instanceVector2 : scale |
Matrix3 |
Returns a scaled matrix using the given scale |
GetRow |
Matrix3 : instancenumber : index |
Vector3 |
Returns the given row |
GetColumn |
Matrix3 : instancenumber : index |
Vector3 |
Returns the given column |
Get |
Matrix3 : instancenumber : rownumber : column |
number |
Returns element at index (row,column) |
Set |
Matrix3 : instancenumber : rownumber : columnnumber : value |
Sets element at index (row,column) |
Operation | Description |
---|---|
Matrix3 + Matrix3 |
Adds two Matrix3 |
Matrix3 - Matrix3 |
Substracts two Matrix3 |
Matrix3 * number |
Multiplies each components of a Matrix3 by a number |
Matrix3 * Vector3 |
Multiplies a Matrix3 by a Vector3 |
Matrix3 * Matrix3 |
Multiplies two Matrix3 |
Matrix3 / number |
Divides each components of a Matrix3 by a number |
Matrix3 / Matrix3 |
Divides two Matrix3 |
to_string(Matrix3) |
Converts a Matrix3 to a string |