TwoDimensionalConvexHullDistanceFromHull Method |
Computes the signed distance from the hull boundary.
Namespace:
AGI.Foundation.Geometry
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public 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.
Remarks This algorithm is O(edge).
See Also