rotated_rect_arrays

laserbeamsize.image_tools.rotated_rect_arrays(xc_px: float, yc_px: float, d_major: float, d_minor: float, phi: float) ndarray[tuple[Any, ...], dtype[floating]][source]

Return x, y points for rotated rectangle with specified center.

Parameters:
  • xc_px – horizontal center of beam

  • yc_px – vertical center of beam

  • d_major – major axis (i.e, major diameter)

  • d_minor – minor axis (i.e, minor diameter)

  • phi – angle between major axis and horizontal axis [radians]

Returns:

x, y – two arrays for points on corners of rotated rectangle