greatCirclePoints
The positions along the great circle from from to to, both included,
no more than maxStepRadians apart (and at most
MAX_GREAT_CIRCLE_STEPS pieces). It goes the short way, so a segment
from 170 to -170 crosses the antimeridian. Two positions that are the same,
or exactly opposite (where no single great circle joins them), come back as
they are.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { greatCirclePoints } from "@mapcairn/core";
function greatCirclePoints(from: LatLng, to: LatLng, maxStepRadians: number): LatLng[];
Parameters
from(LatLng)to(LatLng)maxStepRadians(number)
Returns
LatLng[]