UNPKG

mindee

Version:

Mindee Client Library for Node.js

24 lines (23 loc) 785 B
import { BoundingBox } from "./boundingBox.js"; import { BBox } from "./bbox.js"; import { Polygon } from "./polygon.js"; /** * Given a Polygon, calculate a polygon that encompasses all points. */ export declare function getBoundingBox(polygon: Polygon): BoundingBox; /** * Given a BBox, generate the associated bounding box. */ export declare function getBoundingBoxFromBBox(bbox: BBox): BoundingBox; /** * Given 2 bbox, merge them. */ export declare function mergeBbox(bbox1: BBox, bbox2: BBox): BBox; /** * Given a Polygon, calculate a BBox that encompasses all points. */ export declare function getBbox(polygon: Polygon): BBox; /** * Given polygons, calculate a BBox that encompasses all points. */ export declare function getBBoxForPolygons(polygons: Polygon[]): BBox;