Method SignedDistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
SignedDistanceTo(GeoPoint3)
Calculates the distance from this ball to a point, negative for a point inside it.
public double SignedDistanceTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
Remarks
The magnitude is the distance to the surface, whichever side of it the point is on, and the sign says which side: negative inside, nought on it, positive outside. DistanceTo(GeoPoint3) reads this ball as filled and so answers nothing at all for a point inside, which is the one place the two part company. For the ball of radius 50 about the origin, (20, 0, 0) is -30 and (80, 0, 0) is 30.
SignedDistanceTo(GeoPoint3, Tolerance)
Calculates the distance from this ball to a point, negative for a point inside it, within a tolerance.
public double SignedDistanceTo(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
Nought where Locate(GeoPoint3, Tolerance) says the point is on the surface, so that the two agree.