Table of Contents

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

ellipse GeoEllipse2
point GeoPoint2

Returns

PointLocation

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

ellipse GeoEllipse2

The ellipse.

point GeoPoint2

The point.

tolerance Tolerance

The 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.