Package org.apache.batik.ext.awt.geom
Class AbstractSegment
- java.lang.Object
-
- org.apache.batik.ext.awt.geom.AbstractSegment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.batik.ext.awt.geom.Segment
Segment.SplitResults
-
-
Constructor Summary
Constructors Constructor Description AbstractSegment()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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)
Segment.SplitResults
split(double y)
Segment
splitAfter(double t)
Segment
splitBefore(double t)
-
-
-
Method Detail
-
findRoots
protected abstract int findRoots(double y, double[] roots)
-
split
public Segment.SplitResults split(double y)
-
splitBefore
public Segment splitBefore(double t)
- Specified by:
splitBefore
in interfaceSegment
-
splitAfter
public Segment splitAfter(double t)
- 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)
-
-