Table of Contents

Method GetIntersection

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetIntersection(GeoLine2, GeoLine2)

Gets the intersection point between two line segments using default tolerance. Returns null if lines do not intersect.

public static GeoPoint2? GetIntersection(GeoLine2 line1, GeoLine2 line2)

Parameters

line1 GeoLine2
line2 GeoLine2

Returns

GeoPoint2?

GetIntersection(GeoLine2, GeoLine2, Tolerance)

Gets the intersection point between two line segments within tolerance. Returns null if lines do not intersect.

public static GeoPoint2? GetIntersection(GeoLine2 line1, GeoLine2 line2, Tolerance tolerance)

Parameters

line1 GeoLine2
line2 GeoLine2
tolerance Tolerance

Returns

GeoPoint2?

GetIntersection(GeoLine2, GeoLine2, LineExtension)

Gets the intersection point between two line segments, reading either or both as the infinite line carrying it, using default tolerance. Returns null if they do not meet within the reach allowed.

public static GeoPoint2? GetIntersection(GeoLine2 line1, GeoLine2 line2, LineExtension extension)

Parameters

line1 GeoLine2
line2 GeoLine2
extension LineExtension

Returns

GeoPoint2?

GetIntersection(GeoLine2, GeoLine2, LineExtension, Tolerance)

Gets the intersection point between two line segments, reading either or both as the infinite line carrying it, within tolerance. Returns null if they do not meet within the reach allowed.

public static GeoPoint2? GetIntersection(GeoLine2 line1, GeoLine2 line2, LineExtension extension, Tolerance tolerance)

Parameters

line1 GeoLine2
line2 GeoLine2
extension LineExtension
tolerance Tolerance

Returns

GeoPoint2?