Phaser API Documentation

  Version: 
transformPoint(x, y, [point])

Description:

Transform a point in to the local space of this Matrix.

Parameters:

name type arguments description
x number

The x coordinate of the point to transform.

y number

The y coordinate of the point to transform.

point Phaser.Types.Math.Vector2Like <optional>

Optional Point object to store the transformed coordinates in.

Returns:
Description:

The Point containing the transformed coordinates.