distance3d.distance.point_to_cylinder¶
- distance3d.distance.point_to_cylinder(point, cylinder2origin, radius, length)[source]¶
Compute the shortest distance between point and cylinder.
- Parameters:
- pointarray, shape (3,)
3D point.
- cylinder2originarray, shape (4, 4)
Pose of the cylinder.
- radiusfloat
Radius of the cylinder.
- lengthfloat
Length of the cylinder.
- Returns:
- distancefloat
The shortest distance between point and triangle.
- closest_point_cylinderarray, shape (3,)
Closest point on cylinder.