Method ProjectToCircle
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ProjectToCircle(GeoCircle2, GeoPoint2)
Projects a point onto the circumference of a circle using default tolerance.
public static GeoPoint2 ProjectToCircle(GeoCircle2 circle, GeoPoint2 point)
Parameters
circleGeoCircle2The circle.
pointGeoPoint2The target point.
Returns
- GeoPoint2
The closest point on the circle boundary.
ProjectToCircle(GeoCircle2, GeoPoint2, Tolerance)
Projects a point onto the circumference of a circle within tolerance. The result always lies on the circumference, including for points inside the circle.
public static GeoPoint2 ProjectToCircle(GeoCircle2 circle, GeoPoint2 point, Tolerance tolerance)
Parameters
circleGeoCircle2The circle.
pointGeoPoint2The target point.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2
The closest point on the circle boundary.