Table of Contents

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

triangle GeoTriangle2
point GeoPoint2

Returns

double

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

triangle GeoTriangle2
point GeoPoint2
tolerance Tolerance

Returns

double

Remarks

A triangle of no width has no inside, so no point is within it and the distance is never negative.