PreciseEllipticArcHelper.EllipticalArc Class
Definition
This class represents an elliptical arc on a 2D plane.
This class is adapted for use with WPF StreamGeometryContext, and needs to be created explicitly for each particular arc.
Some helpers
It can handle ellipses which are not aligned with the x and y reference axes of the plane, as well as their parts.
Another improvement is that this class can handle degenerated cases like for example very flat ellipses(semi-minor axis much smaller than semi-major axis) and drawing of very small parts of such ellipses at very high magnification scales.This imply monitoring the drawing approximation error for extremely small values.Such cases occur for example while drawing orbits of comets near the perihelion.
When the arc does not cover the complete ellipse, the lines joining the center of the ellipse to the endpoints can optionally be included or not in the outline, hence allowing to use it for pie-charts rendering. If these lines are not included, the curve is not naturally closed.
public class PreciseEllipticArcHelper.EllipticalArc
Constructors
| Name | Description |
|---|---|
| PreciseEllipticArcHelper.EllipticalArc (5 overloads) | Builds an elliptical arc composed of the full unit circle around (0,0) |
PreciseEllipticArcHelper.EllipticalArc overloads
PreciseEllipticArcHelper.EllipticalArc Constructor
Builds an elliptical arc composed of the full unit circle around (0,0)
public PreciseEllipticArcHelper.EllipticalArc()
PreciseEllipticArcHelper.EllipticalArc Constructor
Build a full ellipse from its canonical geometrical elements
public PreciseEllipticArcHelper.EllipticalArc(Avalonia.Point center, double a, double b, double theta)
Parameters
center Avalonia.Point
Center of the ellipse
a double
Semi-major axis
b double
Semi-minor axis
theta double
Orientation of the major axis with respect to the x axis