@ahamove/polygon-lookup
Version:
A fork from pelias/polygon-lookup with updated dependencies
11 lines • 423 B
TypeScript
import type { Position } from "geojson";
import type { BoundingBox } from "./types.js";
/**
* Calculate axis-aligned bounding box for a polygon coordinate ring.
*
* @param poly - Array of coordinate positions forming a polygon ring
* @returns Bounding box with min/max X and Y coordinates
*/
declare function getBoundingBox(poly: Position[]): BoundingBox;
export { getBoundingBox };
//# sourceMappingURL=utils.d.ts.map