polytopax.distance_to_convex_hull

polytopax.distance_to_convex_hull(point: Array, hull_vertices: Array) Array[source]

Compute distance from point to convex hull.

Parameters:
  • point – Point with shape (…, dim)

  • hull_vertices – Hull vertices with shape (…, n_vertices, dim)

Returns:

  • Positive: point is outside hull

  • Zero: point is on boundary

  • Negative: point is inside hull

Return type:

Signed distance to hull