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

Method clone

src/math/Matrices/Matrix.js:340–342  ·  view source on GitHub ↗

* Creates a copy of the current matrix instance. * This method is useful when you need a duplicate of the matrix * without modifying the original one. * * @returns {Matrix} A new matrix instance that is a copy of the current matrix. * * @example * // META:norender * function

()

Source from the content-addressed store, hash-verified

338 * }
339 */
340 clone() {
341 return this.copy();
342 }
343
344 /**
345 * Returns the diagonal elements of the matrix in the form of an array.

Callers

nothing calls this directly

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected