Phaser API Documentation

  Version: 

Member of: Phaser.Math.Angle

<static> Wrap(angle)

Description:

Wrap an angle.

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

Parameters:

name type description
angle number

The angle to wrap, in radians.

Returns:
Description:

The wrapped angle, in radians.

Type:
  • number
Since: 3.0.0
Source: src/math/angle/Wrap.js (Line 9)