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.
- Version:
- $Id: AbstractSegment.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.batik.ext.awt.geom.Segment
Segment.SplitResults
-
Field Summary
Fields -
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)
-
Field Details
-
eps
static final double eps- See Also:
-
tol
static final double tol- See Also:
-
-
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)
-