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)
Please login to continue.