Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
RSDK.Matrix Class Reference

RSDK matrix manipulation. More...

Public Member Functions

array Create256 ()
 Creates a 4x4 matrix based on the decimal 256.0.
void Identity256 (matrix matrix)
 Sets the matrix to the identity based on the decimal 256.0.
void Multiply256 (matrix matrix, matrix a, matrix b)
 Multiplies two matrices based on the decimal 256.0.
void Translate256 (matrix matrix, number x, number y, number z, boolean setIdentity)
 Translates the matrix based on the decimal 256.0.
void Scale256 (matrix matrix, number scaleX, number scaleY, number scaleZ)
 Sets the matrix to a scale identity based on the decimal 256.0.
void RotateX256 (matrix matrix, number rotationY)
 Sets the matrix to a rotation X identity based on the decimal 256.0.
void RotateY256 (matrix matrix, number rotationY)
 Sets the matrix to a rotation Y identity based on the decimal 256.0.
void RotateZ256 (matrix matrix, number rotationZ)
 Sets the matrix to a rotation Z identity based on the decimal 256.0.
void Rotate256 (matrix matrix, number rotationX, number rotationY, number rotationZ)
 Sets the matrix to a rotation identity based on 256.

Detailed Description

RSDK matrix manipulation.

Member Function Documentation

◆ Create256()

array RSDK.Matrix.Create256 ( )

Creates a 4x4 matrix based on the decimal 256.0.

Returns
Returns the matrix as an array.

◆ Identity256()

void RSDK.Matrix.Identity256 ( matrix matrix)

Sets the matrix to the identity based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.

◆ Multiply256()

void RSDK.Matrix.Multiply256 ( matrix matrix,
matrix a,
matrix b )

Multiplies two matrices based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
aThe first matrix to use for multiplying.
bThe second matrix to use for multiplying.

◆ Rotate256()

void RSDK.Matrix.Rotate256 ( matrix matrix,
number rotationX,
number rotationY,
number rotationZ )

Sets the matrix to a rotation identity based on 256.

Parameters
matrixThe matrix to output the values to.
rotationXX rotation value.
rotationYY rotation value.
rotationZZ rotation value.

◆ RotateX256()

void RSDK.Matrix.RotateX256 ( matrix matrix,
number rotationY )

Sets the matrix to a rotation X identity based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
rotationYX rotation value.

◆ RotateY256()

void RSDK.Matrix.RotateY256 ( matrix matrix,
number rotationY )

Sets the matrix to a rotation Y identity based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
rotationYY rotation value.

◆ RotateZ256()

void RSDK.Matrix.RotateZ256 ( matrix matrix,
number rotationZ )

Sets the matrix to a rotation Z identity based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
rotationZZ rotation value.

◆ Scale256()

void RSDK.Matrix.Scale256 ( matrix matrix,
number scaleX,
number scaleY,
number scaleZ )

Sets the matrix to a scale identity based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
scaleXX scale value.
scaleYY scale value.
scaleZZ scale value.

◆ Translate256()

void RSDK.Matrix.Translate256 ( matrix matrix,
number x,
number y,
number z,
boolean setIdentity )

Translates the matrix based on the decimal 256.0.

Parameters
matrixThe matrix to output the values to.
xX position value.
yY position value.
zZ position value.
setIdentityWhether to set the matrix as the identity.