distance3d.containment_test.points_in_sphere

distance3d.containment_test.points_in_sphere(points, center, radius)[source]

Test if points are in sphere.

Parameters:
pointsarray, shape (n_points, 3)

Points.

centerarray, shape (3,)

Center of the sphere.

radiusfloat

Radius of the sphere.

Returns:
containedarray, shape (n_points,)

Boolean array indicating whether each point is contained or not.