Skip to main content

destinationPoint

The position reached by travelling metres from from along a great circle on bearing (degrees clockwise from north). The longitude is wrapped into [-180, 180].

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { destinationPoint } from "@mapcairn/core";

function destinationPoint(from: LatLng, bearing: number, metres: number): LatLng;

Parameters​

  • from (LatLng)
  • bearing (number)
  • metres (number)

Returns​

LatLng

See also​

Source: packages/core/src/draw/geo.ts:28