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
Remarks
A side is the side it is however short, as the closest point reads it, where one no longer than the global tolerance was read as its start. So are the sides of a triangle and a rectangle: the triangle (0, 0), (10, 0), (10, 0.0006) puts (10.003, 0.0003) 10.0003 round, 0.0003 along its side 0.0006 long, where it put it 10 round, at the start of that side.
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
Remarks
A leg is the leg it is however short, as the closest point reads it, where one no longer than the global tolerance was read as its start; so are the places a polyline is cut at by a point or where a line crosses it.
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.