Element at row 0, column 0
Element at row 0, column 1
Element at row 1, column 0
Element at row 1, column 1
Swaps two elements in the internal array.
Left index
Right index
Gets the value at the specified row and column.
Row index (0-based)
Column index (0-based)
Value at the specified position
Creates a deep copy of this matrix.
New mutable 2x2 matrix with the same values
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
Multiplies this matrix by another 2x2 matrix.
Matrix to multiply by
This matrix for method chaining
Multiplies this matrix by another 2x2 matrix from the left.
Matrix to multiply from the left
This matrix for method chaining
Multiplies this matrix by a scale vector.
2D scale vector
This matrix for method chaining
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
Applies a 2D rotation to this matrix.
Rotation angle in radians
This matrix for method chaining
Applies scaling to this matrix.
2D scale vector
This matrix for method chaining
Sets the value at the specified row and column.
Row index (0-based)
Column index (0-based)
Value to set
This matrix for method chaining
Sets all matrix components from individual values.
Element at row 0, column 0
Element at row 0, column 1
Element at row 1, column 0
Element at row 1, column 1
This matrix 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
Interface for mutable 2x2 matrices. Provides modifiable 2x2 matrix operations for 2D transformations.