# 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`](https://docs.mapcairn.com/api/core/MAX_GREAT_CIRCLE_STEPS.md) 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

```ts
import { greatCirclePoints } from "@mapcairn/core";
 
function greatCirclePoints(from: LatLng, to: LatLng, maxStepRadians: number): LatLng[];
```

## Parameters

- `from` (`LatLng`)
- `to` (`LatLng`)
- `maxStepRadians` (`number`)

## Returns

`LatLng[]`

## See also

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

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