jakke-graphics-ts
Version:
My common graphics utils for building my aec apps.
34 lines • 1.3 kB
TypeScript
import { Line, Polyline2d, Polyline3d, Vertex2d, Vertex3d } from "../models/types/basicGeometries";
type EvaluationFactorInternal = {
travelDistanceOnPolyline: number;
distToFooting: number;
pt: Vertex3d;
t: number;
lineSegment: Line;
};
declare function footingPointOnPolyline2d(polyline: Polyline2d, pt: Vertex2d, withinCurve?: boolean): {
pt: Vertex2d;
t: number;
lineSegment: Line;
availableFactors: EvaluationFactorInternal[];
} | undefined;
declare function footingPointOnPolyline3d(polyline: Polyline3d, pt: Vertex3d, includeEnds?: boolean): {
pt: Vertex3d;
t: number;
lineSegment: Line;
} | undefined;
declare function getLengthPolyline2d(polyline: Polyline2d): number;
declare function getLengthPolyline3d(polyline: Polyline3d): number;
declare function getIntersectionWithLine(polyline: Polyline3d, line: Line): {
pt: Vertex3d;
t: number;
}[];
export declare const PolylineUtils: {
footingPointOnPolyline2d: typeof footingPointOnPolyline2d;
footingPointOnPolyline3d: typeof footingPointOnPolyline3d;
getLengthPolyline2d: typeof getLengthPolyline2d;
getLengthPolyline3d: typeof getLengthPolyline3d;
getIntersectionWithLine: typeof getIntersectionWithLine;
};
export {};
//# sourceMappingURL=polylineUtils.d.ts.map