VKVG  
Vulkan Vector Graphics

◆ vkvg_elliptic_arc_to()

void vkvg_elliptic_arc_to ( VkvgContext  ctx,
float  x,
float  y,
bool  large_arc_flag,
bool  sweep_flag,
float  rx,
float  ry,
float  phi 
)

Draws an elliptical arc from the current point to (x, y). The size and orientation of the ellipse are defined by two radii (rx, ry) and an x-axis-rotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automatically to satisfy the constraints imposed by the other parameters. For a given radii pair, there are two ellipses that could connect two random points. large-arc-flag and sweep-flag contribute to the automatic calculations and help determine how the arc is drawn.

Parameters
ctxA valid context handle.
xthe arc end point x coordinate.
ythe arc end point y coordinate.
large_arc_flagdetermines if the arc must be less or greater than 180°.
sweep_flagThe sweep_flag boolean determines if the arc must start from a negative or positive angle.
rxThe x radius of the ellipse.
ryThe y radius of the ellipse.
phiClockwise rotation of the arc in radian.