LineUtils.Intersects method
Version 1.0.0-beta002
.NET Framework 4.7
Namespace | Skybrud.Essentials.Maps |
---|---|
Assembly | Skybrud.Essentials.Maps.dll |
Intersects(IPoint, IPoint, IPoint, IPoint)
Static
Returns whether the two lines by the points a1
, a2
,
b1
and b2
intersect.
public static bool Intersects(IPoint a1, IPoint a2, IPoint b1, IPoint b2)
Parameters
a1
IPoint
The start point of the first line.
a2
IPoint
The end point of the first line.
b1
IPoint
The start point of the second line.
b2
IPoint
The end point of the second line.
Returns
true
if the two lines intersect, otherwise false
.
Intersects(ILine, ILine)
Static
Returns whether the lines line1
and line2
intersect.
public static bool Intersects(ILine line1, ILine line2)
Returns
true
if the two lines intersect, otherwise false
.
Intersects(IPoint, IPoint, IPoint, IPoint, out IPoint)
Static
Returns whether the two lines by the points a1
, a2
,
b1
and b2
intersect.
public static bool Intersects(IPoint a1, IPoint a2, IPoint b1, IPoint b2, IPoint result)
Parameters
a1
IPoint
The start point of the first line.
a2
IPoint
The end point of the first line.
b1
IPoint
The start point of the second line.
b2
IPoint
The end point of the second line.
Returns
true
if the two lines intersect, otherwise false
.