toEllipse: Ellipsoid Polygon Constructor
Description
Helper to transform gate boundaries to ellipsoid polygon.
Usage
toEllipse(gate, theta = 2 * pi, npoints = 100)
Arguments
gate
list containing x and y ellipse boundaries coordinates.
theta
rotation angle of the ellipse. Default is 2*pi. It should not be modified since ellipse gate are axis-aligned.
npoints
number of polygon vertices desired.