Method ProjectToArc
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ProjectToArc(GeoArc2, GeoPoint2)
Gets the point of an arc closest to a point, using the default tolerance.
public static GeoPoint2 ProjectToArc(GeoArc2 arc, GeoPoint2 point)
Parameters
Returns
ProjectToArc(GeoArc2, GeoPoint2, Tolerance)
Gets the point of an arc closest to a point, within a tolerance.
public static GeoPoint2 ProjectToArc(GeoArc2 arc, GeoPoint2 point, Tolerance tolerance)
Parameters
arcGeoArc2The arc.
pointGeoPoint2The point; it does not have to lie on the arc.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2
The point of the arc closest to the given point, which is one of its ends when the point falls beyond them.
Remarks
A point within the tolerance of the centre of an arc is read as at the centre, which has no direction, and is carried to the arc's start; the distance to the point is the exact one, so the line can be longer than it, by at most twice the point's offset from the centre. At a tolerance of a thousandth, the point (0, -0.0009) and the arc of radius 50 about the origin from (-50, 0) to (50, 0) through (0, -50): the closest point is (-50, 0), 50.00000001 away, where the distance is 49.9991.