Contains the Matrix2 class, which encodes 2 x 2 matrices in linear algebra.
Author: Zach / cszach@proton.me
Matrix2Matrix2Encodes 2 x 2 matrices.
Kind: inner class of Matrix2
See: Matrix for common properties
Matrix2Matrix2All parameters are optional and default to 0.
| Param | Type | Default | Description |
|---|---|---|---|
| a | number |
0 |
The (1, 1)-entry of the new 2 x 2 matrix |
| b | number |
0 |
The (1, 2)-entry |
| c | number |
0 |
The (2, 1)-entry |
| d | number |
0 |
The (2, 2)-entry |
Matrix2Intercharges the two rows in this matrix.
Kind: instance method of Matrix2
Returns: Matrix2 - This matrix
Matrix2Multiplies this matrix by another 2 x 2 matrix.
Kind: instance method of Matrix2
Returns: Matrix2 - This matrix
| Param | Type | Description |
|---|---|---|
| matrix | matrix |
The 2 x 2 matrix to post-multiply this matrix to. |