Skip to main content

densifyAlongGreatCircles

Cuts every segment of a path into pieces along its great circle (see greatCirclePoints). A closed path's last segment, back to the first position, is cut too, and its end is not repeated.

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

Signature​

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

function densifyAlongGreatCircles(positions: readonly LatLng[], closed: boolean, maxStepRadians: number): DensifiedPath;

Parameters​

  • positions (readonly LatLng[])
  • closed (boolean)
  • maxStepRadians (number)

Returns​

DensifiedPath

See also​

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