diff --git a/maker.js/makerjs.d.ts b/maker.js/makerjs.d.ts index 1f2cec591..acea3405b 100644 --- a/maker.js/makerjs.d.ts +++ b/maker.js/makerjs.d.ts @@ -188,6 +188,27 @@ declare module MakerJs { Circle: string; Arc: string; }; + /** + * An intersection of two paths. + */ + interface IPathIntersection { + /** + * Array of points where the two paths intersected. The length of the array may be either 1 or 2 points. + */ + intersectionPoints: IPoint[]; + /** + * This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle. + * It contains the angles of intersection relative to the first path parameter. + * The length of the array may be either 1 or 2. + */ + path1Angles?: number[]; + /** + * This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle. + * It contains the angles of intersection relative to the second path parameter. + * The length of the array may be either 1 or 2. + */ + path2Angles?: number[]; + } interface IPathMap { [id: string]: IPath; } @@ -635,27 +656,6 @@ declare module MakerJs.solvers { function solveTriangleASA(oppositeAngleInDegrees: number, lengthOfSideBetweenAngles: number, otherAngleInDegrees: number): number; } declare module MakerJs.path { - /** - * An intersection of two paths. - */ - interface IPathIntersection { - /** - * Array of points where the two paths intersected. The length of the array may be either 1 or 2 points. - */ - intersectionPoints: IPoint[]; - /** - * This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle. - * It contains the angles of intersection relative to the first path parameter. - * The length of the array may be either 1 or 2. - */ - path1Angles?: number[]; - /** - * This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle. - * It contains the angles of intersection relative to the second path parameter. - * The length of the array may be either 1 or 2. - */ - path2Angles?: number[]; - } /** * Find the point(s) where 2 paths intersect. *