Table of Contents

Method SignedDistanceTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

SignedDistanceTo(GeoPoint3)

Gets how far a point is from the boundary of the loop, negative inside it.

public double SignedDistanceTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

double

SignedDistanceTo(GeoPoint3, Tolerance)

Gets how far a point is from the boundary of the loop, negative inside it, within a tolerance.

public double SignedDistanceTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3

The point.

tolerance Tolerance

The tolerance.

Returns

double

The distance out to the loop, negative where the loop encloses the point. The whole definition is tied to Locate(GeoPoint3, Tolerance), so a point off the loop's plane is positive: the loop calls it OutSide, because a flat region encloses nothing above itself.

Remarks

In the plane every side counts as it is, however short, as Locate(GeoPoint3, Tolerance) reads it: at a tolerance of a ten-thousandth, the loop (0, 0, 0), (10, 0, 0), (10, 0.0006, 0), (0, 10, 0), built within a billionth, is -0.0002 from (9.9998, 0.0003, 0), inside it beside its side 0.0006 long, and 0.0025 from (10.0025, 0.0006, 0), out beyond that side's top.