Phaser API Documentation

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

Description:

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

This is the same as x * b + y * d + f, 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 y value.

Type:
  • number
Since: 3.50.0