mat3
Lens Studio v1.0.0+
Description
A 3x3 matrix.
Constructor
new mat3()
: mat3
Creates a new mat3, defaulting to identity values.
Methods
add(mat3 mat)
: mat3
Returns the result of adding the two matrices together.
determinant()
: Number
Returns the determinant of the matrix.
div(mat3 mat)
: mat3
Returns the result of dividing the two matrices.
equal(mat3 mat)
: Boolean
Returns whether the two matrices are equal.
inverse()
: mat3
Returns the inverse of the matrix.
mult(mat3 mat)
: mat3
Returns the result of multiplying the two matrices.
multiplyScalar(Number scalar)
: mat3
Returns the result of scalar multiplying the matrix.
sub(mat3 mat)
: mat3
Returns the result of subtracting the two matrices.
toString()
: String
Returns a string representation of the matrix.
transpose()
: mat3
Returns the transpose of this matrix.
static identity()
: mat3
Returns the identity matrix.
static makeFromRotation(quat arg1)
: mat3
Returns a matrix representing the specified rotation.
static zero()
: mat3
Returns a matrix with all zero values.
Properties
column0
: vec3
The first column of the matrix.
column1
: vec3
The second column of the matrix.
column2
: vec3
The third column of the matrix.
description
: String
Returns a string representation of the matrix.
Still Looking for help?
Visit Support