Reference radians()

radians()

Converts an angle measured in degrees to its value in radians.

Degrees and radians are both units for measuring angles. There are 360˚ in one full rotation. A full rotation is 2 × π (about 6.28) radians.

The same angle can be expressed in with either unit. For example, 90° is a quarter of a full rotation. The same angle is 2 × π ÷ 4 (about 1.57) radians.

Examples

Syntax

radians(degrees)

Parameters

degrees

degree value to convert to radians.

Notice any errors or typos? Please let us know. Please feel free to edit src/math/trigonometry.js and open a pull request!

Related References