rotated_rect_arrays
- laserbeamsize.image_tools.rotated_rect_arrays(xc, yc, dx, dy, phi, mask_diameters=3)[source]
Return x, y arrays to draw a rotated rectangle.
- Parameters:
xc – horizontal center of beam
yc – vertical center of beam
dx – ellipse diameter for axis closest to horizontal
dy – ellipse diameter for axis closest to vertical
phi – angle that elliptical beam is rotated [radians]
- Returns:
x, y – two arrays for points on corners of rotated rectangle