UNPKG

mindee

Version:

Mindee Client Library for Node.js

23 lines (22 loc) 751 B
import { BoundingBox, BBox } from "./boundingBox"; import { Polygon } from "./polygon"; /** * 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;