@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
56 lines • 1.56 kB
TypeScript
import { AcGeBox2d, AcGeMatrix2d, AcGePoint2d, AcGePoint2dLike } from '../math';
import { AcGeCurve2d } from './AcGeCurve2d';
/**
* The class represents one 3d line geometry specified by its start point and end point.
*/
export declare class AcGeLine2d extends AcGeCurve2d {
private _start;
private _end;
/**
* This constructor initializes the line object to use start as the start point, and end
* as the endpoint. Both points must be in WCS coordinates.
*/
constructor(start: AcGePoint2dLike, end: AcGePoint2dLike);
/**
* The line's startpoint in WCS coordinates
* @returns Return the line's startpoint in WCS coordinates.
*/
get startPoint(): AcGePoint2d;
set startPoint(value: AcGePoint2dLike);
/**
* The line's endpoint in WCS coordinates
* @returns Return the line's endpoint in WCS coordinates.
*/
get endPoint(): AcGePoint2d;
set endPoint(value: AcGePoint2dLike);
/**
* Convert line to a point array with start point and end point.
* @returns Return an array of point
*/
getPoints(): AcGePoint2d[];
/**
* @inheritdoc
*/
get length(): number;
/**
* @inheritdoc
*/
calculateBoundingBox(): AcGeBox2d;
/**
* @inheritdoc
*/
transform(matrix: AcGeMatrix2d): this;
/**
* @inheritdoc
*/
get closed(): boolean;
/**
* @inheritdoc
*/
copy(value: AcGeLine2d): this;
/**
* @inheritdoc
*/
clone(): AcGeLine2d;
}
//# sourceMappingURL=AcGeLine2d.d.ts.map