Skip to content

Matrix4

Adrien GIVRY edited this page Nov 15, 2021 · 4 revisions

Description

Mathematic representation of a 4x4 Matrix of floats

Variables

This usertype has no variables

Constructors

Name Input Output Description
new Matrix4 Default constructor
new number: m00
number: m01
number: m02
number: m03
number: m10
number: m11
number: m12
number: m13
number: m20
number: m21
number: m22
number: m23
number: m30
number: m31
number: m32
number: m33
Matrix4

Functions

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: instance
Vector3: 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: instance
number: 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: instance
number: 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: instance
number: 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: instance
number: 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: instance
Quaternion: rotation
Matrix4 Returns a matrix rotated using the given quaternion
Scaling Vector3: scale
Matrix4 Returns a scaling matrix from the given scale
Scale Matrix4: instance
Vector3: scale
Matrix4 Returns a scaled matrix using the given scale
GetRow Matrix4: instance
number: row
Vector4 Returns the given row
GetColumn Matrix4: instance
number: column
Vector4 Returns the given column
CreatePerspective number: fov
number: aspectRatio
number: near
number: far
Matrix4 Creates a perspective matrix
CreateView number: eyeX
number: eyeY
number: eyeZ
number: lookX
number: lookY
number: lookZ
number: upX
number: upY
number: upZ
Matrix4 Creates a view matrix
CreateFrustum number: left
number: right
number: bottom
number: top
number: near
number: far
Matrix4 Create a frustum matrix
Get Matrix4: instance
number: row
number: column
number Returns element at index (row,column)
Set Matrix4: instance
number: row
number: column
number: value
Sets element at index (row,column)

Operators

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