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
ellipseGeoEllipse2pointGeoPoint2
Returns
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
ellipseGeoEllipse2The ellipse.
pointGeoPoint2The point.
toleranceToleranceThe 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.