distance3d.distance.line_segment_to_circle

distance3d.distance.line_segment_to_circle(segment_start, segment_end, center, radius, normal)[source]

Compute the shortest distance between line segment and circle.

Parameters:
segment_startarray, shape (3,)

Start point of segment.

segment_endarray, shape (3,)

End point of segment.

centerarray, shape (3,)

Center of the circle.

radiusfloat

Radius of the circle.

normalarray, shape (3,)

Normal to the plane in which the circle lies.

Returns:
distfloat

The shortest distance between line segment and circle.

closest_point_line_segmentarray, shape (3,)

Closest point on line segment.

closest_point_circlearray, shape (3,)

Closest point on circle.