Table of Contents

Method GetDistanceAtPoint

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetDistanceAtPoint(GeoLine2, GeoPoint2)

Gets the arc length from the start of a line segment to the point on it closest to the supplied point.

public static double GetDistanceAtPoint(GeoLine2 line, GeoPoint2 point)

Parameters

line GeoLine2
point GeoPoint2

Returns

double

GetDistanceAtPoint(GeoCircle2, GeoPoint2)

Gets the arc length from angle zero to the point on a circle closest to the supplied point.

public static double GetDistanceAtPoint(GeoCircle2 circle, GeoPoint2 point)

Parameters

circle GeoCircle2
point GeoPoint2

Returns

double

GetDistanceAtPoint(GeoRectangle2, GeoPoint2)

Gets the arc length from the LowerLeft corner to the point on the boundary of a rectangle closest to the supplied point.

public static double GetDistanceAtPoint(GeoRectangle2 rect, GeoPoint2 point)

Parameters

rect GeoRectangle2
point GeoPoint2

Returns

double

GetDistanceAtPoint(GeoPolygon2, GeoPoint2)

Gets the arc length from the first vertex to the point on the boundary of a polygon closest to the supplied point.

public static double GetDistanceAtPoint(GeoPolygon2 poly, GeoPoint2 point)

Parameters

poly GeoPolygon2
point GeoPoint2

Returns

double

GetDistanceAtPoint(GeoPolyline2, GeoPoint2)

Gets the arc length from the first vertex to the point on a polyline closest to the supplied point.

public static double GetDistanceAtPoint(GeoPolyline2 polyline, GeoPoint2 point)

Parameters

polyline GeoPolyline2
point GeoPoint2

Returns

double

GetDistanceAtPoint(GeoPolylineArc2, GeoPoint2)

Gets how far along a chain that may curve the point nearest a point lies.

public static double GetDistanceAtPoint(GeoPolylineArc2 chain, GeoPoint2 point)

Parameters

chain GeoPolylineArc2
point GeoPoint2

Returns

double

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetDistanceAtPoint(GeoPolylineArc2, GeoPoint2, Tolerance)

Gets how far along a chain that may curve the point nearest a point lies, within a tolerance.

public static double GetDistanceAtPoint(GeoPolylineArc2 chain, GeoPoint2 point, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
point GeoPoint2
tolerance Tolerance

Returns

double

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetDistanceAtPoint(GeoPolygonArc2, GeoPoint2)

Gets how far round a loop that may curve the point nearest a point lies.

public static double GetDistanceAtPoint(GeoPolygonArc2 loop, GeoPoint2 point)

Parameters

loop GeoPolygonArc2
point GeoPoint2

Returns

double

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetDistanceAtPoint(GeoPolygonArc2, GeoPoint2, Tolerance)

Gets how far round a loop that may curve the point nearest a point lies, within a tolerance.

public static double GetDistanceAtPoint(GeoPolygonArc2 loop, GeoPoint2 point, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
point GeoPoint2
tolerance Tolerance

Returns

double

Exceptions

ArgumentNullException

Thrown when the loop is null.