Hierarchy

Constructors

Methods

Constructors

Methods

  • Generate a random string of characters to be used as a unique id

    Returns string | number[]

    • The result of the call to the uuid function
  • Convert an angle in degrees to radians

    Parameters

    • d: number

      the angle in degrees

    Returns number

    the angle in radians

  • Calculate the linear distance between two points using the Haversine formula

    Todo

    Limit the coordinates to the min/max ranges

    See

    Point

    Parameters

    Returns number

    The distance in km

Generated using TypeDoc