distance3d.containment_test.points_in_cylinder

distance3d.containment_test.points_in_cylinder(points, cylinder2origin, radius, length)[source]

Test if points are in cylinder.

Parameters:
pointsarray, shape (n_points, 3)

Points.

cylinder2originarray, shape (4, 4)

Pose of the cylinder.

radiusfloat

Radius of the cylinder.

lengthfloat

Length of the cylinder.

Returns:
containedarray, shape (n_points,)

Boolean array indicating whether each point is contained or not.