Phaser API Documentation

  Version: 
<static> GetAspectRatio(rect)

Description:

Calculates the width/height ratio of a rectangle.

Parameters:

name type description
rect Phaser.Geom.Rectangle

The rectangle.

Returns:
Description:

The width/height ratio of the rectangle.

Type:
  • number
Since: 3.0.0