Phaser API Documentation

  Version: 
getXRound(x, y, [round])

Description:

Returns the X component of this matrix multiplied by the given values.

This is the same as x * a + y * c + e, optionally passing via Math.round.

Parameters:

name type arguments Default description
x number

The x value.

y number

The y value.

round boolean <optional> false

Math.round the resulting value?

Returns:
Description:

The calculated x value.

Type:
  • number
Since: 3.50.0