JavaScript Algorithms and Data Structures: Math - Radian & Degree

Radian and degree are two units used to measure angles. Learn how to convert between radians and degrees in JavaScript.

The radian (symbol rad) is the unit for measuring angles, and is the standard unit of angular measure used in many areas of mathematics.

The length of an arc of a unit circle is numerically equal to the measurement in radians of the angle that it subtends; one radian is just under 57.3 degrees.

An arc of a circle with the same length as the radius of that circle subtends an angle of 1 radian. The circumference subtends an angle of 2π radians.

Radian

A complete revolution is 2π radians (shown here with a circle of radius one and thus circumference 2π).

2 pi Radian

Conversions

RadiansDegrees
0
π/1215°
π/630°
π/445°
157.3°
π/360°
π/290°
π180°
360°

References

The Original Article can be found on https://github.com

#javascript #algorithms #datastructures #math

JavaScript Algorithms and Data Structures: Math - Radian & Degree
4.45 GEEK