Mat2d
Mat2D
Represents a 2D transformation matrix with components for scaling,
rotation, shear, and translation.
Creates a matrix using the specified components.
Returns the identity matrix.
Creates a rotation matrix from the given angle in radians.
Writes the inverse of ‘input’ into ‘output’. Returns true if the input
matrix is invertible.
Provides indexed access to the matrix components.
Returns the inverse of the matrix, or nil if the matrix is not invertible.
Returns true if the matrix is the identity transform.
Returns true if all components of the two matrices are equal.
Transforms the given Vector by the matrix and returns the result.
Returns the matrix product of this matrix and the given matrix
The xx component of the matrix.
The xy component of the matrix, the vertical skew.
The yx component of the matrix, the horizontal skew.
The yy component of the matrix.
Translation along the x-axis.
Translation along the y-axis.
Creates a translation matrix from the given x and y values or from a Vector position.
Creates a scale matrix from the given x and y values or from a Vector.
Creates a scale-and-translation matrix from numeric values or vectors.
Was this page helpful?