mindee
Version:
Mindee Client Library for Node.js
22 lines (21 loc) • 681 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoundingBox = exports.BBox = void 0;
const polygon_1 = require("./polygon");
/** A simple bounding box defined by 4 coordinates: xMin, yMin, xMax, yMax */
class BBox {
constructor(xMin, yMin, xMax, yMax) {
this.xMin = xMin;
this.yMin = yMin;
this.xMax = xMax;
this.yMax = yMax;
}
}
exports.BBox = BBox;
/** A bounding box defined by 4 points. */
class BoundingBox extends polygon_1.Polygon {
constructor(topLeft, topRight, bottomRight, bottomLeft) {
super(topLeft, topRight, bottomRight, bottomLeft);
}
}
exports.BoundingBox = BoundingBox;
;