UNPKG

@mlightcad/geometry-engine

Version:

The geometry-engine package provides comprehensive geometric entities, mathematical operations, and transformations for 2D and 3D space. This package mimics AutoCAD ObjectARX's AcGe (Geometry) classes and provides the mathematical foundation for CAD opera

31 lines 1.07 kB
import { AcGeBox2d, AcGeMatrix2d, AcGeVector2dLike } from '../math'; import { AcGeShape } from './AcGeShape'; /** * Abstract base class for all kinds of 2d shapes. */ export declare abstract class AcGeShape2d extends AcGeShape { /** * The bounding box of this shape */ private _box?; /** * Return new shape translated by given vector. */ translate(v: AcGeVector2dLike): this; /** * Transforms the entity by applying the input matrix. * @param matrix Input transformation matrix */ abstract transform(matrix: AcGeMatrix2d): this; /** * The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding * box of one shape, the bounding box value is cached. It will be calculated again lazily once there * are any changes to properties of this shape. */ get box(): AcGeBox2d; /** * Return true if this shape contains the specified shape */ protected abstract calculateBoundingBox(): AcGeBox2d; } //# sourceMappingURL=AcGeShape2d.d.ts.map