NicolasLeRoux / geosaic

TODO
MIT License
0 stars 0 forks source link

From degree to radian #2

Closed NicolasLeRoux closed 6 years ago

NicolasLeRoux commented 6 years ago

Goals

Create a function to convert degree to radian (like degToRad). The equation is to use is deg = rad * 180 / PI. This fonction should got on a math utilities module.

Samples:

For 1°, i should have ~0.017 rad
For 30°, i should have ~0.52 rad
For 45°, i should have ~0.79 rad
For 60°, i should have ~1.05 rad
For 90°, i should have ~1.57 rad