Phaser API Documentation

  Version: 

Member of: Phaser.Math.Angle

<static> WrapDegrees(angle)

Description:

Wrap an angle in degrees.

Wraps the angle to a value in the range of -180 to 180.

Parameters:

name type description
angle number

The angle to wrap, in degrees.

Returns:
Description:

The wrapped angle, in degrees.

Type:
  • number
Since: 3.0.0