* Resets the current matrix to an identity matrix. * * This method replaces the current matrix with an identity matrix of the same dimensions. * An identity matrix is a square matrix with ones on the main diagonal and zeros elsewhere. * This is useful for resetting transformations or sta
()
| 189 | * } |
| 190 | */ |
| 191 | reset() { |
| 192 | this.matrix = this.#createIdentityMatrix(this.#sqDimention); |
| 193 | return this; |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Replace the entire contents of a NxN matrix. |
nothing calls this directly
no test coverage detected