# densifyAlongGreatCircles

Cuts every segment of a path into pieces along its great circle (see
[`greatCirclePoints`](https://docs.mapcairn.com/api/core/greatCirclePoints.md)). 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

```ts
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

- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)
- [`DensifiedPath`](https://docs.mapcairn.com/api/core/DensifiedPath.md)

Source: [packages/core/src/globe/greatCircle.ts:174](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/globe/greatCircle.ts#L174)
