Phaser API Documentation

  Version: 
<static> FloorAll(rect)

Description:

Rounds a Rectangle's position and size down to the largest integer less than or equal to each current coordinate or dimension.

Parameters:

name type description
rect Phaser.Geom.Rectangle

The Rectangle to adjust.

Returns:
Description:

The adjusted Rectangle.

Since: 3.0.0