Click or drag to resize

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.2.419.0 (24.2.419.0)
Syntax
public double DistanceFromHull(
	Rectangular queryPoint
)

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