Class LM_Matrix

Version added: before 9.5
The LM_Matrix class is used to represent a 4x4 transformation matrix. Matrix objects are used to transform points in 3D space.

If necessary, instances of this class can be created by:

- Local variable:
local matrix = LM.Matrix:new_local()

- Global (see Script Structure about conventions for naming globals):
XX_matrix = LM.Matrix:new()

Methods of LM_Matrix:

Name Returns Description Ver
Identity void Set the matrix to be an identity matrix < 9.5
Invert void Invert the matrix < 9.5
Multiply void Multiplies two matrices < 9.5
Perspective void Prepend a perspective transform onto the current matrix < 9.5
Rotate void Prepend a rotation onto the current matrix < 9.5
Scale void Prepend a scale onto the current matrix < 9.5
ScaleValue real < 9.5
Set void Set the value of a matrix by copying an existing matrix < 9.5
Transform void Apply a matrix transformation to a 2D vector object < 9.5
Transform void Apply a matrix transformation to a 3D vector object < 9.5
Transform void Apply a matrix transformation to a bounding box object < 9.5
Translate void Prepend a translation onto the current matrix < 9.5