terra-draw
Version:
Frictionless map drawing across mapping provider
8 lines (7 loc) • 346 B
TypeScript
import { Polygon } from "geojson";
/**
* Checks if a GeoJSON Polygon follows the right-hand rule.
* @param polygon - The GeoJSON Polygon to check.
* @returns {boolean} - True if the polygon follows the right-hand rule (counterclockwise outer ring), otherwise false.
*/
export declare function followsRightHandRule(polygon: Polygon): boolean;