Skip to content

Matrix3

Adrien GIVRY edited this page Sep 26, 2020 · 3 revisions

Description

Mathematic representation of a 3x3 Matrix of floats

Variables

This usertype has no variables

Constructors

Name Input Output Description
new Matrix3 Default constructor
new number: value
Matrix3 Constructor setting all components to the given value
new number: m00
number: m01
number: m02
number: m10
number: m11
number: m12
number: m20
number: m21
number: m22
Matrix3 Instantiate a Matrix3 with all the given component values

Functions

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: instance
Vector2: 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: instance
number: 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: instance
Vector2: scale
Matrix3 Returns a scaled matrix using the given scale
GetRow Matrix3: instance
number: index
Vector3 Returns the given row
GetColumn Matrix3: instance
number: index
Vector3 Returns the given column
Get Matrix3: instance
number: row
number: column
number Returns element at index (row,column)
Set Matrix3: instance
number: row
number: column
number: value
Sets element at index (row,column)

Operators

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
Clone this wiki locally