CanvasPathBuilderAddArc Method (Vector2, Single, Single, Single, CanvasSweepDirection, CanvasArcSize) |
Namespace: Microsoft.Graphics.Canvas.Geometry
public void AddArc( Vector2 endPoint, float radiusX, float radiusY, float rotationAngle, CanvasSweepDirection sweepDirection, CanvasArcSize arcSize )
This overload defines an arc by connecting the current path position to the specified end point. It computes an ellipse with the specified radius and rotation angle, positions it such that the ellipse passes through both points, and outputs the portion of the ellipse that lies between the two points. The sweepDirection and arcSize parameters disambiguate which ellipse to choose in cases where there is more than one possible solution.
See the AddArc(Vector2, Single, Single, Single, Single) overload for an alternative (often easier) way to specify arcs.
The ellipse rotation angle is in radians.