LineUtils.GetIntersection method

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps
Assembly Skybrud.Essentials.Maps.dll

GetIntersection(IPoint, IPoint, IPoint, IPoint)

Static

Returns the point of intersections between the two lines defined by the points a1, a2, b1 and b2.

public static IPoint GetIntersection(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

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

GetIntersection(ILine, ILine)

Static

Returns the point of intersection between line1 and line2.

public static IPoint GetIntersection(ILine line1, ILine line2)

Parameters

line1 ILine

The first line.

line2 ILine

The second line.

Returns

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