Skip to content

Update to version v0.1.0

Latest
Compare
Choose a tag to compare
@MuhammadSawalhy MuhammadSawalhy released this 14 Sep 18:33
· 71 commits to master since this release

[0.1.0] - 2020-9-9

Added

  • 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.