Buy Me a Coffee at ko-fi.com

A global API which provides functions dedicated to creating and otherwise manipulating matrices
Accessed using the name "matrices"

Creates a Matrix2 using the given parameters as columns
If you call the function with no parameters, returns the 2x2 identity matrix

overload 1:
MatricesAPI.mat2(): Matrix2
typings.-1789003663
Method PropertyFluent DescriptionRepresentation
Return Value
overload 2:
MatricesAPI.mat2(col1: Vector2, col2: Vector2): Matrix2
typings.2002444079typings.2002444079typings.-1789003663
Method PropertyFluent DescriptionRepresentation
col1 accepts
col2 accepts
Return Value

Creates a Matrix3 using the given parameters as columns
If you call the function with no parameters, returns the 3x3 identity matrix

overload 1:
MatricesAPI.mat3(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value
overload 2:
MatricesAPI.mat3(col1: Vector3, col2: Vector3, col3: Vector3): Matrix3
typings.2002444080typings.2002444080typings.2002444080typings.-1789003662
Method PropertyFluent DescriptionRepresentation
col1 accepts
col2 accepts
col3 accepts
Return Value

Creates a Matrix4 using the given parameters as columns
If you call the function with no parameters, returns the 4x4 identity matrix

overload 1:
MatricesAPI.mat4(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value
overload 2:
MatricesAPI.mat4(col1: Vector4, col2: Vector4, col3: Vector4, col4: Vector4): Matrix4
typings.2002444081typings.2002444081typings.2002444081typings.2002444081typings.-1789003661
Method PropertyFluent DescriptionRepresentation
col1 accepts
col2 accepts
col3 accepts
col4 accepts
Return Value

Creates a new Matrix2 that rotates by the specified angle
Angle is given in degrees

overload 1:
MatricesAPI.rotation2(angle: Number): Matrix2
typings.-1950496919typings.-1789003663
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix3 that rotates by the specified angles
Angles are given in degrees, and the rotation order is ZYX

overload 1:
MatricesAPI.rotation3(vec: Vector3): Matrix3
typings.2002444080typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.rotation3(x: Number, y: Number, z: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Creates a new Matrix4 that rotates by the specified angles
Angles are given in degrees, and the rotation order is ZYX

overload 1:
MatricesAPI.rotation4(vec: Vector3): Matrix4
typings.2002444080typings.-1789003661
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.rotation4(x: Number, y: Number, z: Number): Matrix4
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Creates a new Matrix2 that scales by the specified factors

overload 1:
MatricesAPI.scale2(vec: Vector2): Matrix2
typings.2002444079typings.-1789003663
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.scale2(x: Number, y: Number): Matrix2
typings.-1950496919typings.-1950496919typings.-1789003663
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
Return Value

Creates a new Matrix3 that scales by the specified factors

overload 1:
MatricesAPI.scale3(vec: Vector3): Matrix3
typings.2002444080typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.scale3(x: Number, y: Number, z: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Creates a new Matrix4 that scales by the specified factors

overload 1:
MatricesAPI.scale4(vec: Vector3): Matrix4
typings.2002444080typings.-1789003661
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.scale4(x: Number, y: Number, z: Number): Matrix4
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Creates a new Matrix3 that translates by the specified offset

overload 1:
MatricesAPI.translate3(vec: Vector2): Matrix3
typings.2002444079typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.translate3(x: Number, y: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
Return Value

Creates a new Matrix4 that translates by the specified offset

overload 1:
MatricesAPI.translate4(vec: Vector3): Matrix4
typings.2002444080typings.-1789003661
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
MatricesAPI.translate4(x: Number, y: Number, z: Number): Matrix4
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
z accepts
Return Value

Creates a new Matrix3 that rotates by the specified angle around the X axis
Angle is given in degrees

overload 1:
MatricesAPI.xRotation3(angle: Number): Matrix3
typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix4 that rotates by the specified angle around the X axis
Angle is given in degrees

overload 1:
MatricesAPI.xRotation4(angle: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix3 that rotates by the specified angle around the Y axis
Angle is given in degrees

overload 1:
MatricesAPI.yRotation3(angle: Number): Matrix3
typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix4 that rotates by the specified angle around the Y axis
Angle is given in degrees

overload 1:
MatricesAPI.yRotation4(angle: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix3 that rotates by the specified angle around the Z axis
Angle is given in degrees

overload 1:
MatricesAPI.zRotation3(angle: Number): Matrix3
typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value

Creates a new Matrix4 that rotates by the specified angle around the Z axis
Angle is given in degrees

overload 1:
MatricesAPI.zRotation4(angle: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
angle accepts
Return Value