dreye.in_hull#

dreye.in_hull(P, B, bounded=True, qhull_options=None)[source]#

Check if points B are in the convex hull of P.

Parameters:
Pnp.ndarray

Array of points defining the convex hull.

Bnp.ndarray

Array of points to be checked if they are inside the convex hull.

boundedbool, optional

If True (default), the solution is a convex combination. If False, the solution is an affine combination.

qhull_optionsstr, optional

Additional options to pass to Qhull via Delaunay.

Returns:
bool

True if B is inside the convex hull of P, False otherwise.