Method Locate
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Locate(GeoEllipse2, GeoPoint2)
Says where a point sits relative to an ellipse, using the default tolerance.
public static PointLocation Locate(GeoEllipse2 ellipse, GeoPoint2 point)
Parameters
ellipseGeoEllipse2pointGeoPoint2
Returns
Locate(GeoEllipse2, GeoPoint2, Tolerance)
Says where a point sits relative to an ellipse, within a tolerance.
public static PointLocation Locate(GeoEllipse2 ellipse, GeoPoint2 point, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
pointGeoPoint2The point.
toleranceToleranceThe tolerance: how far from the rim, in drawing units, a point still lies on it.
Returns
- PointLocation
OnSide within the point tolerance of the rim; otherwise Inside or OutSide.
Remarks
The gap to the rim is measured as a distance, to the nearest point of the rim, so a point a thousandth off the rim is on it whether it lies by the end of the major axis or of the minor one. Reading how far the ellipse's own equation is from one instead would put a band round the rim as wide as the radius it is read along.