* 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
()
| 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. |