Line2Intersect Method

Test whether two line segments intersect. If so, calculate the intersection point. here.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static bool Intersect(
	Line2 l0,
	Line2 l1,
	out Point2 intersection,
	bool considerCollinearOverlapAsIntersect = false
)

Parameters

l0  Line2
The first line.
l1  Line2
The second line.
intersection  Point2
The point of intersection, if any.
considerCollinearOverlapAsIntersect  Boolean  (Optional)
Do we consider overlapping lines as intersecting?.

Return Value

Boolean
True if an intersection point was found.

See Also