ellipse_arrays

laserbeamsize.image_tools.ellipse_arrays(xc, yc, dx, dy, phi, npoints=200)[source]

Return x, y arrays to draw a rotated ellipse.

Parameters:
  • xc – horizontal center of beam

  • yc – vertical center of beam

  • dx – horizontal diameter of beam

  • dy – vertical diameter of beam

  • phi – angle that elliptical beam is rotated [radians]

Returns:

x, y – two arrays of points on the ellipse