MCPcopy
hub / github.com/processing/p5.js / copy

Method copy

src/math/Matrices/Matrix.js:315–317  ·  view source on GitHub ↗

* Return a copy of this matrix. * If this matrix is 4x4, a 4x4 matrix with exactly the same entries will be * generated. The same is true if this matrix is 3x3 or any NxN matrix. * * This method is useful when you need to preserve the current state of a matrix * while performing opera

()

Source from the content-addressed store, hash-verified

313 * }
314 */
315 copy() {
316 return new Matrix(this.matrix);
317 }
318
319 /**
320 * Creates a copy of the current matrix instance.

Callers 5

cloneMethod · 0.95
multMethod · 0.95
applyMethod · 0.95
multiplyVecMethod · 0.45
multiplyVec3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected