Class EllipticalCurveTo.EllipseArc
java.lang.Object
com.itextpdf.svg.renderers.path.impl.EllipticalCurveTo.EllipseArc
- Enclosing class:
EllipticalCurveTo
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 in
PdfCanvas
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEllipseArc
(Point center, double a, double b, double startAng, double extent) -
Method Summary
Modifier and TypeMethodDescription(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)
-
Field Details
-
ll
-
ur
-
startAng
final double startAng -
extent
final double extent
-
-
Constructor Details
-
EllipseArc
EllipseArc(Point center, double a, double b, double startAng, double extent)
-
-
Method Details
-
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) -
calculateAngle
-
toDegrees
static double toDegrees(double radians)
-