Method Intersect
Intersect(Line2D, Line2D, out Vector2)
Tests whether two finite segments intersect and returns the intersection point when they do.
public static bool Intersect(Line2D l1, Line2D l2, out Vector2 point)
Parameters
l1Line2DThe first segment.
l2Line2DThe second segment.
pointVector2The intersection point when the segments intersect; otherwise an unspecified value.
Returns
Remarks
Parallel or coincident lines are reported as non-intersecting by this method. The extent test uses squared distances from the computed intersection point to each endpoint rather than parametric coordinates.