@mlightcad/libredwg-web
Version:
A DWG/DXF JavaScript parser based on libredwg
22 lines • 751 B
TypeScript
import { DwgPoint2D } from '../database';
export declare class Box2D {
min: DwgPoint2D;
max: DwgPoint2D;
valid: boolean;
constructor();
/**
* Expands the bounding box to include a point.
* @param point point to include
* @returns Returned this bounding box
*/
expandByPoint(point: DwgPoint2D): Box2D;
/**
* Applies a transformation to the bounding box and return a new bounding box.
* @param scale scale factor
* @param rotationRad rotation in radians
* @param translation translation vector
* @returns Returned the transformed bounding box
*/
applyTransform(scale: DwgPoint2D, rotationRad: number, translation: DwgPoint2D): Box2D;
}
//# sourceMappingURL=box2d.d.ts.map