Search
DrawingUtils.getSegmentIntersection Method
See Also
 





Checks whether the segments defined by the specified point pairs intersect and returns the intersection point.

Namespace: MindFusion.Drawing
Package: DrawingUtils.js

 Syntax

JavaScript  Copy Code

function getSegmentIntersection (p1, p2, p3, p4)

 Parameters

p1

Point. The start of the first segment.

p2

Point. The end of the first segment.

p3

Point. The start of the second segment.

p4

Point. The end of the second segment.

 Return Value

Boolean. true if the segments intersect, false if not.

 See Also