MCPcopy Index your code
hub / github.com/processing/p5.js / reset

Method reset

src/math/Matrices/Matrix.js:191–194  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

#createIdentityMatrixMethod · 0.95

Tested by

no test coverage detected