Skip to main content

centralAngle

The angle at the centre of the Earth between two positions, in radians.

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

Signature​

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

function centralAngle(from: LatLng, to: LatLng): number;

Parameters​

  • from (LatLng)
  • to (LatLng)

Returns​

number

See also​

Source: packages/core/src/globe/greatCircle.ts:83