Phaser API Documentation

  Version: 
<static> Floor(rect)

Description:

Rounds down (floors) the top left X and Y coordinates of the given Rectangle to the largest integer less than or equal to them

Parameters:

name type description
rect Phaser.Geom.Rectangle

The rectangle to floor the top left X and Y coordinates of

Returns:
Description:

The rectangle that was passed to this function with its coordinates floored.

Since: 3.0.0