distance3d.containment_test.points_in_capsule

distance3d.containment_test.points_in_capsule(points, capsule2origin, radius, height)[source]

Test if points are in capsule.

Parameters:
pointsarray, shape (n_points, 3)

Points.

capsule2originarray, shape (4, 4)

Pose of the capsule.

radiusfloat

Radius of the capsule.

heightfloat

Height of the capsule.

Returns:
containedarray, shape (n_points,)

Boolean array indicating whether each point is contained or not.