Class EllipticalCurveTo.EllipseArc
- java.lang.Object
-
- com.itextpdf.svg.renderers.path.impl.EllipticalCurveTo.EllipseArc
-
- Enclosing class:
- EllipticalCurveTo
static class EllipticalCurveTo.EllipseArc extends java.lang.Object
Converts between two types of definitions of an arc: The input is an arc defined by two points and the two semi-axes of the ellipse. The output is an arc defined by a bounding rectangle, the starting angle, and the angular extent of the ellipse that is to be drawn. The output is an intermediate step to calculating the Bézier curve(s) that approximate(s) the elliptical arc, which happens inPdfCanvas
.
-
-
Constructor Summary
Constructors Constructor Description EllipseArc(Point center, double a, double b, double startAng, double extent)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static double
calculateAngle(Point pt, Point center, double a, double b)
(package private) static EllipticalCurveTo.EllipseArc
calculatePossibleMiddle(Point start, Point end, double a, double b, double startToCenterAngle, boolean sweep, boolean largeArc)
(package private) static EllipticalCurveTo.EllipseArc
getEllipse(Point start, Point end, double a, double b, boolean sweep, boolean largeArc)
(package private) static double
toDegrees(double radians)
-
-
-
Constructor Detail
-
EllipseArc
EllipseArc(Point center, double a, double b, double startAng, double extent)
-
-
Method Detail
-
getEllipse
static EllipticalCurveTo.EllipseArc getEllipse(Point start, Point end, double a, double b, boolean sweep, boolean largeArc)
-
calculatePossibleMiddle
static EllipticalCurveTo.EllipseArc calculatePossibleMiddle(Point start, Point end, double a, double b, double startToCenterAngle, boolean sweep, boolean largeArc)
-
toDegrees
static double toDegrees(double radians)
-
-