Method GetClosestPointOnBoundary
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetClosestPointOnBoundary(GeoEllipse3, GeoPoint3)
Gets the point of the rim of an ellipse in space nearest a point.
public static GeoPoint3 GetClosestPointOnBoundary(GeoEllipse3 ellipse, GeoPoint3 point)
Parameters
ellipseGeoEllipse3The ellipse.
pointGeoPoint3The point, anywhere.
Returns
- GeoPoint3
The nearest point of the rim.
Remarks
Every point of the rim stands as high above the point's foot on the plane as the point does, so the nearest point of the rim to the point is the nearest to its foot, which GetClosestPointOnBoundary(GeoEllipse2, GeoPoint2) finds by Eberly's method; and the gap is the root of the height squared and the gap in the plane squared. Where two points of the rim are equally near, one is picked as in the plane: a point above the centre gives the end of the minor axis at t = 90°, a circle's centre too.