Skip to main content

greatCircleInterpolate

The position a fraction t (0 to 1) of the way along the great circle from from to to. Two positions that are the same or exactly opposite give from.

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

Signature​

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

function greatCircleInterpolate(from: LatLng, to: LatLng, t: number): LatLng;

Parameters​

  • from (LatLng)
  • to (LatLng)
  • t (number)

Returns​

LatLng

See also​

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