clone(output) → {Phaser.Matrix}
Creates a new Matrix object based on the values of this Matrix.
If you provide the output parameter the values of this Matrix will be copied over to it.
If the output parameter is blank a new Matrix object will be created.
Parameters
Name | Type | Argument | Description |
---|---|---|---|
output | Phaser.Matrix | <optional> | If provided the values of this Matrix will be copied to it, otherwise a new Matrix object is created. |
Returns
A clone of this Matrix.
- Source code: geom/Matrix.js (Line 128)
Please login to continue.