@@ -185,6 +185,27 @@ declare module MakerJs {
185
185
Circle : string ;
186
186
Arc : string ;
187
187
} ;
188
+ /**
189
+ * An intersection of two paths.
190
+ */
191
+ interface IPathIntersection {
192
+ /**
193
+ * Array of points where the two paths intersected. The length of the array may be either 1 or 2 points.
194
+ */
195
+ intersectionPoints : IPoint [ ] ;
196
+ /**
197
+ * This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle.
198
+ * It contains the angles of intersection relative to the first path parameter.
199
+ * The length of the array may be either 1 or 2.
200
+ */
201
+ path1Angles ?: number [ ] ;
202
+ /**
203
+ * This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle.
204
+ * It contains the angles of intersection relative to the second path parameter.
205
+ * The length of the array may be either 1 or 2.
206
+ */
207
+ path2Angles ?: number [ ] ;
208
+ }
188
209
interface IPathMap {
189
210
[ id : string ] : IPath ;
190
211
}
@@ -632,27 +653,6 @@ declare module MakerJs.solvers {
632
653
function solveTriangleASA ( oppositeAngleInDegrees : number , lengthOfSideBetweenAngles : number , otherAngleInDegrees : number ) : number ;
633
654
}
634
655
declare module MakerJs . path {
635
- /**
636
- * An intersection of two paths.
637
- */
638
- interface IPathIntersection {
639
- /**
640
- * Array of points where the two paths intersected. The length of the array may be either 1 or 2 points.
641
- */
642
- intersectionPoints : IPoint [ ] ;
643
- /**
644
- * This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle.
645
- * It contains the angles of intersection relative to the first path parameter.
646
- * The length of the array may be either 1 or 2.
647
- */
648
- path1Angles ?: number [ ] ;
649
- /**
650
- * This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle.
651
- * It contains the angles of intersection relative to the second path parameter.
652
- * The length of the array may be either 1 or 2.
653
- */
654
- path2Angles ?: number [ ] ;
655
- }
656
656
/**
657
657
* Find the point(s) where 2 paths intersect.
658
658
*
0 commit comments