Phaser API Documentation

  Version: 
getX(x, y)

Description:

Returns the X component of this matrix multiplied by the given values. This is the same as x * a + y * c + e.

Parameters:

name type description
x number

The x value.

y number

The y value.

Returns:
Description:

The calculated x value.

Type:
  • number
Examples:
Since: 3.12.0