VKVG
Vulkan Vector Graphics
|
◆ vkvg_arc()
Adds a circular arc in clockwise order of the given radius to the current path following angles of a trigonometric circle. After this call the current point will be the last computed point of the arc. The arc is centered at (xc , yc ), begins at angle a1 and proceeds in the direction of increasing angles to end at angle a2. If a2 is less than a1, it will be progressively increased by 2*PI until it is greater than a1. If there is a current point, an initial line segment will be added to the path to connect the current point to the beginning of the arc. If this initial line is undesired, it can be avoided by calling vkvg_new_sub_path() before calling vkvg_arc(). Angles are measured in radians. An angle of 0.0 is in the direction of the positive X axis. An angle of PI/2 radians (90 degrees) is in the direction of the positive Y axis. Angles increase in the direction from the positive X axis toward the positive Y axis. So with the default transformation matrix, angles increase in a clockwise direction.
|