The utils.curvesIntersect()
function finds the intersections between two curves
described by 4 points each.
WARNING
This function can sometimes fail to find intersections in some curves due to a limitation in an underlying Bézier library. Please see Bug #3367 for more information.
Signature
Javascript
array | Point | false utils.curvesIntersect(
Point startA,
Point Cp1A,
Point Cp2A,
Point endA,
Point startB,
Point Cp1B,
Point Cp2B,
Point endB)
This returns false
if no intersections are found,
a Point object if
a single intersection is found, and an array
of Point objects if
multiple intersections are found.