Skip to main content

ringSignedArea

The signed area of a ring in square degrees (shoelace, longitude as x): positive when the ring runs anticlockwise on a map. Used for orientation only, never as a measure.

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

Signature​

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

function ringSignedArea(ring: readonly LatLng[]): number;

Parameters​

  • ring (readonly LatLng[])

Returns​

number

See also​

Source: packages/core/src/draw/geo.ts:85