Table of Contents

Method SignedDistanceTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

SignedDistanceTo(GeoEllipse2, GeoPoint2)

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

public static double SignedDistanceTo(GeoEllipse2 ellipse, GeoPoint2 point)

Parameters

ellipse GeoEllipse2
point GeoPoint2

Returns

double

SignedDistanceTo(GeoEllipse2, GeoPoint2, Tolerance)

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

public static double SignedDistanceTo(GeoEllipse2 ellipse, GeoPoint2 point, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

point GeoPoint2

The point.

tolerance Tolerance

The tolerance Locate(GeoEllipse2, GeoPoint2, Tolerance) reads the side with.

Returns

double

The distance to the nearest point of the rim, negative where Locate(GeoEllipse2, GeoPoint2, Tolerance) says inside and nought where it says on the rim. The centre of the ellipse 300 by 100 is -100.