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)

Parameters

line1 ILine

The first line.

line2 ILine

The second line.

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.

result IPoint

An instance of IPoint representing the point of intersection, or null if the two points don't intersect.

Returns

true if the two lines intersect, otherwise false.

Intersects(ILine, ILine, out IPoint)

Static

Returns whether the lines line1 and line2 intersect.

public static bool Intersects(ILine line1, ILine line2, IPoint result)

Parameters

line1 ILine

The first line.

line2 ILine

The second line.

result IPoint

An instance of IPoint representing the point of intersection, or null if the two points don't intersect.

Returns

true if the two lines intersect, otherwise false.