ClassCoordinates

A latitude/longitude pair.

Comparing Coordinates

Configuring the Geographic Properties

Creating Coordinates

Deriving Coordinates

Comparing Coordinates

  • Returns the distance (in metres) to some other coordinates.

    Parameters

    Returns number

    The distance in metres.

Configuring the Geographic Properties

latitude: number

The latitude, in degrees.

longitude: number

The longitude, in degrees.

Creating Coordinates

  • Creates some new coordinates.

    Parameters

    • latitude: number

      The latitude in degrees.

    • longitude: number

      The longitude in degrees.

    Returns Coordinates

Deriving Coordinates

  • Creates some coordinates relative to these coordinates.

    Parameters

    • direction: number

      The direction of the new coordinates from the origin coordinates (in degrees relative to true north).

    • distance: number

      The distance of the new coordinates from the origin coordinates (in metres).

    Returns Coordinates

    The new coordinates.