BBMOD_Matrix

constructor

new BBMOD_Matrix([_raw])

Description

A matrix.

Arguments

Name Type Description
_raw Array<Real> A raw GameMaker matrix. If undefined, then an identity matrix is created.

Properties

Name Description
Raw A raw GameMaker matrix.

Methods

Name Description
AddComponentwise Adds each component of the matrix to corresponding component of other matrix.
ApplyProjection Changes the current projeciton matrix to this one.
ApplyView Changes the view world matrix to this one.
ApplyWorld Changes the current world matrix to this one.
Clone Creates a clone of the matrix.
Copy Copies the matrix to another matrix.
Determinant Computes the determinant of the matrix.
FromArray Initializes the matrix from an array.
FromBuffer Initializes the matrix from a buffer.
FromColumns Initializes the matrix from columns.
FromLookAt Initializes a look-at matrix.
FromProjection Initializes the matrix using the current projection matrix.
FromRows Initializes the matrix from rows.
FromView Initializes the matrix using the current view matrix.
FromWorld Initializes the matrix using the current world matrix.
FromWorldViewProjection Initializes the matrix using the current world * view * projection matrix.
Inverse Creates a matrix that is inverse to this one.
Mul Multiplies matrices.
MulComponentwise Multiplies each component of the matrix with corresponding component of other matrix.
RotateEuler Rotates the matrix using euler angles.
RotateQuat Rotates the matrix using a quaternion
RotateX Rotates the matrix on the X axis.
RotateY Rotates the matrix on the Y axis.
RotateZ Rotates the matrix on the Z axis.
Scale Scales the matrix.
ScaleComponentwise Scales each component of the matrix.
ScaleX Scales the matrix on the X axis.
ScaleY Scales the matrix on the Y axis.
ScaleZ Scales the matrix on the Z axis.
Set Sets matrix value at specific index.
SubComponentwise Subtracts each component of a matrix from corresponding component of this matrix.
ToArray Writes the matrix into an array.
ToBuffer Writes the matrix into a buffer.
ToEuler Retrieves euler angles from the matrix.
Transform Transforms a vector by the matrix and returns the result as a new vector.
Translate Translates the matrix.
TranslateX Translates the matrix on the X axis.
TranslateY Translates the matrix on the Y axis.
TranslateZ Translates the matrix on the Z axis.
Transpose Creates a transpose of this matrix.
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.