Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> DegToRad(degrees)

Description:

Convert the given angle from degrees, to the equivalent angle in radians.

Parameters:

name type description
degrees number

The angle (in degrees) to convert to radians.

Returns:
Description:

The given angle converted to radians.

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