Moved IPathIntersection into root module

This commit is contained in:
Dan Marshall
2015-07-11 10:39:21 -07:00
parent cd46e9d593
commit 3174d8c3aa
+21 -21
View File
@@ -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.
*