Matrix#apply()

apply(pos, newPos) → {Phaser.Point}

Get a new position with the current transformation applied.

Can be used to go from a childs coordinate space to the world coordinate space (e.g. rendering)

Parameters
Name Type Argument Description
pos Phaser.Point

The origin Point.

newPos Phaser.Point <optional>

The point that the new position is assigned to. This can be same as input point.

Returns

The new point, transformed through this matrix.

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

Please login to continue.