TwoDimensionalConvexHullDistanceFromHull Method |
Computes the signed distance from the hull boundary.
Namespace:
AGI.Foundation.Geometry
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.1.416.0 (23.1.416.0)
Syntaxpublic double DistanceFromHull(
Rectangular queryPoint
)
Public Function DistanceFromHull (
queryPoint As Rectangular
) As Double
public:
double DistanceFromHull(
Rectangular queryPoint
)
member DistanceFromHull :
queryPoint : Rectangular -> float
Parameters
- queryPoint
- Type: AGI.Foundation.CoordinatesRectangular
The point to be analyzed.
Return Value
Type:
Double
The distance from the convex hull.
The value will be negative if the point lies inside the convex hull; zero if the point lies on the convex hull; or positive if the point lies outside the convex hull.
RemarksThis algorithm is O(edge).
See Also