Table of Contents

Method SignedDistanceTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

SignedDistanceTo(GeoPoint2)

Gets the distance from this ellipse to a point, negative for a point inside it, using the default tolerance.

public double SignedDistanceTo(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

double

The distance out to the rim, measured exactly, negative when the point lies inside the ellipse and nought when the global point tolerance calls it on the rim.

Remarks

The magnitude is the distance to the rim, whichever side of it the point is on, and the sign says which side: negative inside, nought on it, positive outside. DistanceTo(GeoPoint2) reads this ellipse as filled and so answers nought for a point inside, which is the one place the two part company.

SignedDistanceTo(GeoPoint2, Tolerance)

Gets the distance from this ellipse to a point, negative for a point inside it, within a tolerance.

public double SignedDistanceTo(GeoPoint2 point, Tolerance tolerance)

Parameters

point GeoPoint2
tolerance Tolerance

Returns

double

The distance out to the rim, measured exactly, negative when the point lies inside the ellipse and nought when the tolerance given calls it on the rim.