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
Returns
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
circleGeoCircle2pointGeoPoint2
Returns
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
rectGeoRectangle2pointGeoPoint2
Returns
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
polyGeoPolygon2pointGeoPoint2
Returns
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
polylineGeoPolyline2pointGeoPoint2
Returns
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
chainGeoPolylineArc2pointGeoPoint2
Returns
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
chainGeoPolylineArc2pointGeoPoint2toleranceTolerance
Returns
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
loopGeoPolygonArc2pointGeoPoint2
Returns
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
loopGeoPolygonArc2pointGeoPoint2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.