Matrix#clone()

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)
doc_phaser
2017-02-14 10:55:11
Comments
Leave a Comment

Please login to continue.