PeachDrawing.Core
PeachDrawing.Core.Geometry.PathShapes
PathShapes.AddPie(this GraphicsPath, double, double, double, double, double, double) Method
Adds a pie slice: the center, a straight line out to the start of an elliptical arc, the arc, and a straight line back. A sweep of a full turn or more adds the whole ellipse instead.
public static void AddPie(this PeachDrawing.Core.GraphicsPath path, double centerX, double centerY, double radiusX, double radiusY, double startAngleRadians, double sweepRadians);
Parameters
path GraphicsPath
the path to add to
centerX System.Double
the center’s x-coordinate
centerY System.Double
the center’s y-coordinate
radiusX System.Double
the horizontal radius
radiusY System.Double
the vertical radius
startAngleRadians System.Double
where the arc starts, measured from the positive x-axis toward positive y
sweepRadians System.Double
how far the arc runs; positive is toward positive y (clockwise on a y-down canvas)