Method SignedDistanceTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
SignedDistanceTo(GeoTriangle2, GeoPoint2)
Gets the distance from a triangle to a point, negative for a point within it, using the default tolerance.
public static double SignedDistanceTo(GeoTriangle2 triangle, GeoPoint2 point)
Parameters
triangleGeoTriangle2pointGeoPoint2
Returns
SignedDistanceTo(GeoTriangle2, GeoPoint2, Tolerance)
Gets the distance from a triangle to a point, negative for a point within it, within a tolerance.
public static double SignedDistanceTo(GeoTriangle2 triangle, GeoPoint2 point, Tolerance tolerance)
Parameters
triangleGeoTriangle2pointGeoPoint2toleranceTolerance
Returns
Remarks
A triangle of no width has no inside, so no point is within it and the distance is never negative.