Package org.apache.batik.ext.awt.geom
Class AbstractSegment
java.lang.Object
org.apache.batik.ext.awt.geom.AbstractSegment
An abstract class for path segments.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.batik.ext.awt.geom.Segment
Segment.SplitResults
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int
findRoots
(double y, double[] roots) static double
matchSign
(double a, double b) static int
solveCubic
(double a3, double a2, double a1, double a0, double[] roots) static int
solveLine
(double a, double b, double[] roots) static int
solveQuad
(double a, double b, double c, double[] roots) split
(double y) splitAfter
(double t) splitBefore
(double t)
-
Constructor Details
-
AbstractSegment
public AbstractSegment()
-
-
Method Details
-
findRoots
protected abstract int findRoots(double y, double[] roots) -
split
-
splitBefore
- Specified by:
splitBefore
in interfaceSegment
-
splitAfter
- Specified by:
splitAfter
in interfaceSegment
-
solveLine
public static int solveLine(double a, double b, double[] roots) -
solveQuad
public static int solveQuad(double a, double b, double c, double[] roots) -
matchSign
public static double matchSign(double a, double b) -
solveCubic
public static int solveCubic(double a3, double a2, double a1, double a0, double[] roots)
-