Buy Me a Coffee at ko-fi.com

A matrix with 3 rows and 3 columns

Adds the other matrix to this one
Returns self for chaining

overload 1:
Matrix3.add(other: Matrix3): Matrix3
typings.-1789003662typings.-1789003662
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:
Matrix3.apply(vec: Vector2): Vector2
typings.2002444079typings.2002444079
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
Matrix3.apply(x: Number, y: Number): Vector2
typings.-1950496919typings.-1950496919typings.2002444079
Method PropertyFluent DescriptionRepresentation
x accepts
y 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:
Matrix3.applyDir(vec: Vector2): Vector2
typings.2002444079typings.2002444079
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
Matrix3.applyDir(x: Number, y: Number): Vector2
typings.-1950496919typings.-1950496919typings.2002444079
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
Return Value

Augments this matrix, adding an additional row and column
Puts a 1 along the diagonal in the new spot, and the rest are zero

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

Creates and returns a new copy of this matrix

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

Deaugments this matrix, removing a row and column

overload 1:
Matrix3.deaugmented(): Matrix2
typings.-1789003663
Method PropertyFluent DescriptionRepresentation
Return Value

Calculates and returns the determinant of this matrix

overload 1:
Matrix3.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:
Matrix3.getColumn(col: Integer): Vector3
typings.-672261858typings.2002444080
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:
Matrix3.getRow(row: Integer): Vector3
typings.-672261858typings.2002444080
Method PropertyFluent DescriptionRepresentation
row accepts
Return Value

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

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

Returns a copy of this matrix, but inverted

overload 1:
Matrix3.inverted(): Matrix3
typings.-1789003662
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:
Matrix3.multiply(other: Matrix3): Matrix3
typings.-1789003662typings.-1789003662
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

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

overload 1:
Matrix3.reset(): Matrix3
typings.-1789003662
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:
Matrix3.rightMultiply(other: Matrix3): Matrix3
typings.-1789003662typings.-1789003662
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:
Matrix3.rotate(vec: Vector3): Matrix3
typings.2002444080typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
Matrix3.rotate(x: Number, y: Number, z: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003662
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:
Matrix3.rotateX(degrees: Number): Matrix3
typings.-1950496919typings.-1789003662
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:
Matrix3.rotateY(degrees: Number): Matrix3
typings.-1950496919typings.-1789003662
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:
Matrix3.rotateZ(degrees: Number): Matrix3
typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
degrees accepts
Return Value

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

overload 1:
Matrix3.scale(vec: Vector3): Matrix3
typings.2002444080typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
Matrix3.scale(x: Number, y: Number, z: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1950496919typings.-1789003662
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:
Matrix3.set(other: Matrix3): Matrix3
typings.-1789003662typings.-1789003662
Method PropertyFluent DescriptionRepresentation
other accepts
Return Value

Subtracts the other matrix from this one
Returns self for chaining

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

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

overload 1:
Matrix3.translate(vec: Vector2): Matrix3
typings.2002444079typings.-1789003662
Method PropertyFluent DescriptionRepresentation
vec accepts
Return Value
overload 2:
Matrix3.translate(x: Number, y: Number): Matrix3
typings.-1950496919typings.-1950496919typings.-1789003662
Method PropertyFluent DescriptionRepresentation
x accepts
y 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:
Matrix3.transpose(): Matrix3
typings.-1789003662
Method PropertyFluent DescriptionRepresentation
Return Value

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

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