# shortestLongitudeSpan

The narrowest run of longitude, going east from `west` to `east`, that
holds every one of `lngs`: the circle of longitude less its widest empty
gap. Across the antimeridian `east` goes past 180 (179 and -179 give 179
to 181), so a fit takes the short way rather than the width of the world.

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

## Signature

```ts
import { shortestLongitudeSpan } from "@mapcairn/core";
 
function shortestLongitudeSpan(lngs: readonly number[]): {
    readonly west: number;
    readonly east: number;
} | undefined;
```

## Parameters

- `lngs` (`readonly number[]`)

## Returns

`{
    readonly west: number;
    readonly east: number;
} | undefined`: `undefined` when there are no longitudes.

Source: [packages/core/src/globe/longitude.ts:51](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/globe/longitude.ts#L51)
