MindFusion.Charting for JavaScript Programmer's Guide
DrawingUtils.getSegmentIntersection Method
See Also
 






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

Namespace: MindFusion.Drawing
File: DrawingUtils.js

 Syntax

JavaScript  Copy Code

function getSegmentIntersection (p1, p2, p3, p4)

 Parameters

p1

Type: Point
Point. The start of the first segment.

p2

Type: Point
Point. The end of the first segment.

p3

Type: Point
Point. The start of the second segment.

p4

Type: Point
Point. The end of the second segment.

 Return Value

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

 See Also

DrawingUtils Members
DrawingUtils Class
MindFusion.Drawing Namespace