Line2Intersect Method
Test whether two line segments intersect. If so, calculate the intersection point.
here.
Namespace: Karamba.GeometryAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static bool Intersect(
Line2 l0,
Line2 l1,
out Point2 intersection,
bool considerCollinearOverlapAsIntersect = false
)
Public Shared Function Intersect (
l0 As Line2,
l1 As Line2,
<OutAttribute> ByRef intersection As Point2,
Optional considerCollinearOverlapAsIntersect As Boolean = false
) As Boolean
public:
static bool Intersect(
Line2^ l0,
Line2^ l1,
[OutAttribute] Point2% intersection,
bool considerCollinearOverlapAsIntersect = false
)
static member Intersect :
l0 : Line2 *
l1 : Line2 *
intersection : Point2 byref *
?considerCollinearOverlapAsIntersect : bool
(* Defaults:
let _considerCollinearOverlapAsIntersect = defaultArg considerCollinearOverlapAsIntersect false
*)
-> bool
- 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?.
BooleanTrue if an intersection point was found.