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
Goals
Create a function to convert degree to radian (like
degToRad
). The equation is to use isdeg = rad * 180 / PI
. This fonction should got on a math utilities module.Samples: