Click or drag to resize
CanvasPathBuilderAddArc Method (Vector2, Single, Single, Single, CanvasSweepDirection, CanvasArcSize)
Adds a single arc to the path, specified by start and end points through which an ellipse will be fitted.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void AddArc(
	Vector2 endPoint,
	float radiusX,
	float radiusY,
	float rotationAngle,
	CanvasSweepDirection sweepDirection,
	CanvasArcSize arcSize
)

Parameters

endPoint
Type: System.NumericsVector2
radiusX
Type: SystemSingle
radiusY
Type: SystemSingle
rotationAngle
Type: SystemSingle
sweepDirection
Type: Microsoft.Graphics.Canvas.GeometryCanvasSweepDirection
arcSize
Type: Microsoft.Graphics.Canvas.GeometryCanvasArcSize
Remarks

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.

See Also