ellipse_arrays
- laserbeamsize.image_tools.ellipse_arrays(xc_px: float, yc_px: float, d_major: float, d_minor: float, phi: float, npoints: int = 200) ndarray[tuple[Any, ...], dtype[floating]][source]
Return x, y arrays to draw a rotated ellipse.
- 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]
npoints – (optional) number of points to use for ellipse
- Returns:
x, y – two arrays of points on the ellipse