distance3d.plotting.plot_rectangle¶
- distance3d.plotting.plot_rectangle(ax, rectangle_center, rectangle_axes, rectangle_lengths, show_axes=True, surface_alpha=0.1)[source]¶
Plot rectangle.
- Parameters:
- axMatplotlib 3d axis
A matplotlib 3d axis.
- rectangle_centerarray, shape (3,)
Center point of the rectangle.
- rectangle_axesarray, shape (2, 3)
Each row is a vector of unit length, indicating the direction of one axis of the rectangle. Both vectors are orthogonal.
- rectangle_lengthsarray, shape (2,)
Lengths of the two sides of the rectangle.
- show_axesbool, optional (default: True)
Show axes of the rectangle as arrows.
- surface_alphafloat, optional (default: 0.1)
Alpha value of the rectangle surface.