distance3d.geometry.convert_rectangle_to_segment¶
- distance3d.geometry.convert_rectangle_to_segment(rectangle_center, rectangle_extents, i0, i1)[source]¶
Extract line segment from rectangle.
- Parameters:
- rectangle_centerarray, shape (3,)
Center point of the rectangle.
- rectangle_extentsarray, shape (3, 2)
Extents along axes of the rectangles: 0.5 * rectangle_sizes * rectangle_axes.
- i0int
Either 0 or 1, selecting line segment.
- i1int
Either 0 or 1, selecting line segment.
- Returns:
- segment_startarray, shape (3,)
Start point of segment.
- segment_endarray, shape (3,)
End point of segment.