Matrix#applyInverse()

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

Get a new position with the inverse of the current transformation applied.

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

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, inverse transformed through this matrix.

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

Please login to continue.