Internal typed array storing matrix data in column-major order
ReadonlyclassReturns the class name of the matrix implementation
ReadonlyisIndicates if this matrix is an identity matrix class
Readonlym00Element at row 0, column 0
Readonlym01Element at row 0, column 1
Readonlym10Element at row 1, column 0
Readonlym11Element at row 1, column 1
Gets the value at the specified row and column.
Row index (0-based)
Column index (0-based)
Value at the specified position
Calculates the determinant of this 2x2 matrix.
Determinant value
Flattens the matrix into a plain JavaScript array.
Array containing all matrix elements
Extracts the scale factors from this matrix and stores them in an output vector.
Output vector to store the scale factors
The output vector for method chaining
Checks if this is a dummy/placeholder matrix.
True if this is a dummy matrix
Checks if this matrix is approximately equal to another matrix.
Matrix to compare against
Optionaldelta: numberOptional tolerance for comparison (default: small epsilon)
True if matrices are approximately equal
Checks if this matrix is strictly equal to another matrix.
Matrix to compare against
True if matrices are exactly equal
Checks if the internal array buffer is the same as the provided one.
Array buffer to compare against
True if the source is the same
Multiplies this matrix by a 2D vector and stores the result in an output vector.
2D vector to multiply
Output vector to store the result
The output vector for method chaining
Converts the matrix to a string representation.
String representation of the matrix
Converts the matrix to an approximate string representation.
Approximate string representation with rounded values
Gets the value at the specified linear index.
Linear index in the internal array
Value at the specified index
Interface for immutable 2x2 matrices. Provides specific operations for 2D transformations.