Method SignedDistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
SignedDistanceTo(GeoPoint2)
Gets the distance from this triangle to a point, negative for a point within it, using the default tolerance.
public double SignedDistanceTo(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
- double
The distance out to the nearest side, measured exactly, negative when the point lies inside the triangle and nought when the global point tolerance calls it on a side.
Remarks
The magnitude is the distance to the edges, whichever side of them the point is on, and the sign says which side: negative inside, nought on them, positive outside.
SignedDistanceTo(GeoPoint2, Tolerance)
Gets the distance from this triangle to a point, negative for a point within it, within a tolerance.
public double SignedDistanceTo(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
- double
The distance out to the nearest side, measured exactly, negative when the point lies inside the triangle and nought when the tolerance given calls it on a side.