Matrix#toArray()

toArray(transpose, array) → {PIXI.Float32Array}

Creates a Float32 Array with values populated from this Matrix object.

Parameters
Name Type Argument Default Description
transpose boolean <optional>
false

Whether the values in the array are transposed or not.

array PIXI.Float32Array <optional>

If provided the values will be set into this array, otherwise a new Float32Array is created.

Returns
PIXI.Float32Array -

The newly created array which contains the matrix.

Source code: geom/Matrix.js (Line 192)
doc_phaser
2017-02-14 10:55:15
Comments
Leave a Comment

Please login to continue.