GeometryHelper.FlattenArc Method

Definition

Flattens an elliptical arc into a series of line segments.

public:
 static void FlattenArc(System::Collections::Generic::List<Microsoft::Maui::Graphics::Point> ^ points, Microsoft::Maui::Graphics::Point pt1, Microsoft::Maui::Graphics::Point pt2, double radiusX, double radiusY, double angleRotation, bool isLargeArc, bool isCounterclockwise, double tolerance);
public static void FlattenArc(System.Collections.Generic.List<Microsoft.Maui.Graphics.Point> points, Microsoft.Maui.Graphics.Point pt1, Microsoft.Maui.Graphics.Point pt2, double radiusX, double radiusY, double angleRotation, bool isLargeArc, bool isCounterclockwise, double tolerance);
static member FlattenArc : System.Collections.Generic.List<Microsoft.Maui.Graphics.Point> * Microsoft.Maui.Graphics.Point * Microsoft.Maui.Graphics.Point * double * double * double * bool * bool * double -> unit
Public Shared Sub FlattenArc (points As List(Of Point), pt1 As Point, pt2 As Point, radiusX As Double, radiusY As Double, angleRotation As Double, isLargeArc As Boolean, isCounterclockwise As Boolean, tolerance As Double)

Parameters

points
List<Point>

The list to add the resulting points to.

pt1
Point

The start point of the arc.

pt2
Point

The end point of the arc.

radiusX
Double

The x-radius of the ellipse.

radiusY
Double

The y-radius of the ellipse.

angleRotation
Double

The rotation angle of the ellipse in degrees.

isLargeArc
Boolean

Whether to use the larger of the two possible arcs.

isCounterclockwise
Boolean

Whether the arc sweeps counterclockwise.

tolerance
Double

The maximum distance between the arc and the polyline approximation.

Remarks

See http://www.charlespetzold.com/blog/2008/01/Mathematics-of-ArcSegment.html for more information.

Applies to