Element at row 0, column 0
Element at row 0, column 1
Element at row 1, column 0
Element at row 1, column 1
Creates a deep copy of this matrix.
New mutable 2x2 matrix with the same values
Copies components from another matrix.
This matrix for method chaining
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
Sets this matrix to the identity matrix.
This matrix for method chaining
Inverts this matrix in place.
This matrix for method chaining
Checks if this matrix is approximately equal to another matrix.
Matrix to compare against
Optional
delta: 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
Gets the raw typed array containing matrix data.
Raw typed array
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
Transposes this matrix in place.
This matrix for method chaining
Sets all matrix elements to zero.
This matrix for method chaining
Interface for mutable 2x2 matrices. Provides modifiable 2x2 matrix operations for 2D transformations.