Properties
The index into Matrix2 for column 0, row 0.
The index into Matrix2 for column 0, row 1.
The index into Matrix2 for column 1, row 0.
The index into Matrix2 for column 1, row 1.
The number of elements used to pack the object into an array.
Functions
Compares the provided matrices componentwise and returns true
if they are within the provided epsilon, false
otherwise.
Creates a Matrix2 instance from a column-major order array.
Creates a rotation matrix.
Creates a Matrix2 instance from a row-major order array. The resulting matrix will be in column-major order.
Computes a Matrix2 instance representing a non-uniform scale.
Computes a Matrix2 instance representing a uniform scale.
Retrieves a copy of the matrix column at the provided index as a Cartesian2 instance.
Computes the array index of the element at the provided row and column.
Computes the maximum scale assuming the matrix is an affine transformation. The maximum scale is the maximum length of the column vectors.
Extracts the rotation matrix assuming the matrix is an affine transformation.
Retrieves a copy of the matrix row at the provided index as a Cartesian2 instance.
Extracts the non-uniform scale assuming the matrix is an affine transformation.
Computes the product of a matrix and a scalar.
Computes the product of a matrix times a (non-uniform) scale, as if the scale were a scale matrix.
Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.
Computes the product of a matrix and a column vector.
Stores the provided instance into the provided array.
Flattens an array of Matrix2s into an array of components. The components are stored in column-major order.
Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian2 instance.
Sets the rotation assuming the matrix is an affine transformation.
Computes a new matrix that replaces the scale with the provided uniform scale. This assumes the matrix is an affine transformation.
Creates an Array from the provided Matrix2 instance. The array will be in column-major order.
Unpacks an array of column-major matrix components into an array of Matrix2s.