You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the package angles.js, extending some new APIs, (methods), here below.
fromDeg, fromRad and fromGon
In geometry.angles.degMinSec, you can get {deg, min, sec}. Convert float number into degrees, minutes, and seconds.
geometry.angles.strDegMinSec, you can get an angle formatted as (12° 3' 5"). Convert float number or {deg, min, sec} into a string representing the angle in degrees, minutes, and seconds.
geometry.angles.fromDegMinSec, reverts the function degMinSec.
geometry.angles.fromStrDegMinSec, reverts the function strDegMinSec.
Alias some long-name function: replace degMinSec with DMS. For example, fromStrDegMinSec = fromStrDMS and digMinSec = DMS.
geometry.angles.nomalizeInside, gets the equivalent engle inside a complete round starting from a given offset. For example, you can accomplish the same result with angles.normalizeHalf(angle) and angles.normalizeInside(angles, -0.5), -0.5 here is the offset (-50%) of our range which the angle will be normalized in.