Checks whether the segments defined by the specified point pairs intersect and returns the intersection point.
Namespace: MindFusion.Drawing
File: DrawingUtils.js
JavaScript Copy Code |
---|
function getSegmentIntersection (p1, p2, p3, p4) |
Type: Point
Point. The start of the first segment.
Type: Point
Point. The end of the first segment.
Type: Point
Point. The start of the second segment.
Type: Point
Point. The end of the second segment.
Type: Boolean
Boolean. true if the segments intersect, false if not.