PeachDrawing.Core

PeachDrawing.Core

EllipticalArc Class

Converts an SVG-style endpoint-parameterized elliptical arc (the shape of a path’s own A command, and of AddArc(double, double, double, double, double, bool, bool)) to the center parameterization every ellipse point/tangent computation actually needs, per the standard algorithm (SVG 1.1 Appendix F.6.5, “Conversion from endpoint to center parameterization” - the same construction every SVG-conformant renderer uses, not something specific to this codebase).

public static class EllipticalArc

Inheritance System.Object → EllipticalArc

Methods  
TryGetCenterParameterization(double, double, double, double, double, double, double, bool, bool, EllipticalArcCenter) Returns false for a degenerate arc (coincident endpoints, or a zero radius) - SVG’s own rule for that case is to treat the command as a straight line, which the caller does instead.