Buy Me a Coffee at ko-fi.com

A matrix with 4 rows and 4 columns

Adds the other matrix to this one
Returns self for chaining

overload 1:
Matrix4.add(other: Matrix4): Matrix4
typings.-1789003661typings.-1789003661
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Treats the given values as a vector, augments this vector with a 1, multiplies it against the matrix, and returns a deaugmented vector of the first values

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

Treats the given values as a vector, augments this vector with a 0, multiplies it against the matrix, and returns a deaugmented vector of the first values

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

Creates and returns a new copy of this matrix

overload 1:
Matrix4.copy(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Deaugments this matrix, removing a row and column

overload 1:
Matrix4.deaugmented(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value

Calculates and returns the determinant of this matrix

overload 1:
Matrix4.det(): Number
typings.-1950496919
Method PropertyFluent DescriptionRepresentation
Return Value

Gets the given column of this matrix, as a vector
Indexing starts at 1, as usual

overload 1:
Matrix4.getColumn(col: Integer): Vector4
typings.-672261858typings.2002444081
Method PropertyFluent DescriptionRepresentation
col accepts
Return Value

Gets the given row of this matrix, as a vector
Indexing starts at 1, as usual

overload 1:
Matrix4.getRow(row: Integer): Vector4
typings.-672261858typings.2002444081
Method PropertyFluent DescriptionRepresentation
row accepts
Return Value

Inverts this matrix, changing the values inside
Returns self for chaining

overload 1:
Matrix4.invert(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Returns a copy of this matrix, but inverted

overload 1:
Matrix4.inverted(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Multiplies this matrix by the other matrix, with the other matrix on the left
Returns self for chaining

overload 1:
Matrix4.multiply(other: Matrix4): Matrix4
typings.-1789003661typings.-1789003661
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Resets this matrix back to the identity matrix
Returns self for chaining

overload 1:
Matrix4.reset(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Multiplies this matrix by the other matrix, with the other matrix on the right
Returns self for chaining

overload 1:
Matrix4.rightMultiply(other: Matrix4): Matrix4
typings.-1789003661typings.-1789003661
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Rotates this matrix by the specified amount, changing the values inside
Angles are given in degrees
Returns self for chaining

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

Rotates this matrix around the X axis by the specified number of degrees
Returns self for chaining

overload 1:
Matrix4.rotateX(degrees: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
degrees accepts
Return Value

Rotates this matrix around the Y axis by the specified number of degrees
Returns self for chaining

overload 1:
Matrix4.rotateY(degrees: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
degrees accepts
Return Value

Rotates this matrix around the Z axis by the specified number of degrees
Returns self for chaining

overload 1:
Matrix4.rotateZ(degrees: Number): Matrix4
typings.-1950496919typings.-1789003661
Method PropertyFluent DescriptionRepresentation
degrees accepts
Return Value

Scales this matrix by the specified amount, changing the values inside
Returns self for chaining

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

Sets this matrix to have the same values as the matrix passed in
Returns self for chaining

overload 1:
Matrix4.set(other: Matrix4): Matrix4
typings.-1789003661typings.-1789003661
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Subtracts the other matrix from this one
Returns self for chaining

overload 1:
Matrix4.sub(other: Matrix4): Matrix4
typings.-1789003661typings.-1789003661
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Translates this matrix by the specified amount, changing the values inside
Returns self for chaining

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

Transposes this matrix, changing the values inside
Transposing means to swap the rows and the columns
Returns self for chaining

overload 1:
Matrix4.transpose(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value

Returns a copy of this matrix, but transposed
Transposing means to swap the rows and the columns

overload 1:
Matrix4.transposed(): Matrix4
typings.-1789003661
Method PropertyFluent DescriptionRepresentation
Return Value