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

16 lines 880 B
import { AcGePoint2dLike } from '../math'; /** * Determine if the 2d point is inside the polygon * @param point 2d point to check whether it is in the specified polygon * @param polygon an polygon consisted by 2d point array * @param includeOnSide if ture, return true if the specified point is inside the polygon or the polygon border. * @returns Return true if the 2d point is inside the polygon */ declare function isPointInPolygon(point: AcGePoint2dLike, polygon: AcGePoint2dLike[], includeOnSide?: boolean): boolean; declare function isPolygonIntersect(polygon1: AcGePoint2dLike[], polygon2: AcGePoint2dLike[]): boolean; declare const AcGeGeometryUtil: { isPointInPolygon: typeof isPointInPolygon; isPolygonIntersect: typeof isPolygonIntersect; }; export { isPointInPolygon, isPolygonIntersect, AcGeGeometryUtil }; //# sourceMappingURL=AcGeGeometryUtil.d.ts.map