distance3d.geometry.convert_segment_to_line

distance3d.geometry.convert_segment_to_line(segment_start, segment_end)[source]

Convert line segment to line.

Parameters:
segment_startarray, shape (3,)

Start point of segment.

segment_endarray, shape (3,)

End point of segment.

Returns:
segment_directionarray, shape (3,)

Line direction with unit length (or 0).

segment_lengthfloat

Length of the line segment.