final class Order3 extends Curve
Modifier and Type | Field and Description |
---|---|
private double |
cx0 |
private double |
cx1 |
private double |
cy0 |
private double |
cy1 |
private double |
TforY1 |
private double |
TforY2 |
private double |
TforY3 |
private double |
x0 |
private double |
x1 |
private double |
xcoeff0 |
private double |
xcoeff1 |
private double |
xcoeff2 |
private double |
xcoeff3 |
private double |
xmax |
private double |
xmin |
private double |
y0 |
private double |
y1 |
private double |
ycoeff0 |
private double |
ycoeff1 |
private double |
ycoeff2 |
private double |
ycoeff3 |
private double |
YforT1 |
private double |
YforT2 |
private double |
YforT3 |
DECREASING, direction, INCREASING, TMIN
Constructor and Description |
---|
Order3(double x0,
double y0,
double cx0,
double cy0,
double cx1,
double cy1,
double x1,
double y1,
int direction) |
Modifier and Type | Method and Description |
---|---|
static void |
addInstance(java.util.Vector curves,
double x0,
double y0,
double cx0,
double cy0,
double cx1,
double cy1,
double x1,
double y1,
int direction) |
java.lang.String |
controlPointString() |
double |
dXforT(double t,
int deriv) |
double |
dYforT(double t,
int deriv) |
void |
enlarge(RectBounds r) |
double |
getCX0() |
double |
getCX1() |
double |
getCY0() |
double |
getCY1() |
static int |
getHorizontalParams(double c0,
double cp0,
double cp1,
double c1,
double[] ret) |
int |
getOrder() |
Curve |
getReversedCurve() |
int |
getSegment(float[] coords) |
Curve |
getSubCurve(double ystart,
double yend,
int dir) |
double |
getX0() |
double |
getX1() |
double |
getXBot() |
double |
getXMax() |
double |
getXMin() |
double |
getXTop() |
double |
getY0() |
double |
getY1() |
double |
getYBot() |
double |
getYTop() |
static void |
insert(java.util.Vector curves,
double[] tmp,
double x0,
double y0,
double cx0,
double cy0,
double cx1,
double cy1,
double x1,
double y1,
int direction) |
double |
nextVertical(double t0,
double t1) |
double |
refine(double a,
double b,
double c,
double target,
double t) |
static int |
solveQuadratic(double[] eqn,
double[] res)
[A double version of what is in QuadCurve2D...]
Solves the quadratic whose coefficients are in the
eqn
array and places the non-complex roots into the res
array, returning the number of roots. |
static void |
split(double[] coords,
int pos,
double t) |
double |
TforY(double y) |
double |
XforT(double t) |
double |
XforY(double y) |
double |
YforT(double t) |
accumulateCrossings, compareTo, crossingsFor, diffbits, fairlyClose, findIntersect, getDirection, getSubCurve, getWithDirection, insertCubic, insertLine, insertMove, insertQuad, next, orderof, prev, refineTforY, round, signeddiffbits, toString
private double x0
private double y0
private double cx0
private double cy0
private double cx1
private double cy1
private double x1
private double y1
private double xmin
private double xmax
private double xcoeff0
private double xcoeff1
private double xcoeff2
private double xcoeff3
private double ycoeff0
private double ycoeff1
private double ycoeff2
private double ycoeff3
private double TforY1
private double YforT1
private double TforY2
private double YforT2
private double TforY3
private double YforT3
public Order3(double x0, double y0, double cx0, double cy0, double cx1, double cy1, double x1, double y1, int direction)
public static void insert(java.util.Vector curves, double[] tmp, double x0, double y0, double cx0, double cy0, double cx1, double cy1, double x1, double y1, int direction)
public static void addInstance(java.util.Vector curves, double x0, double y0, double cx0, double cy0, double cx1, double cy1, double x1, double y1, int direction)
public static int solveQuadratic(double[] eqn, double[] res)
eqn
array and places the non-complex roots into the res
array, returning the number of roots.
The quadratic solved is represented by the equation:
eqn = {C, B, A}; ax^2 + bx + c = 0A return value of
-1
is used to distinguish a constant
equation, which might be always 0 or never 0, from an equation that
has no zeroes.eqn
- the specified array of coefficients to use to solve
the quadratic equationres
- the array that contains the non-complex roots
resulting from the solution of the quadratic equation-1
if the equation is
a constant.public static int getHorizontalParams(double c0, double cp0, double cp1, double c1, double[] ret)
public static void split(double[] coords, int pos, double t)
public double getCX0()
public double getCY0()
public double getCX1()
public double getCY1()
public double refine(double a, double b, double c, double target, double t)
public double nextVertical(double t0, double t1)
nextVertical
in class Curve
public void enlarge(RectBounds r)
public Curve getSubCurve(double ystart, double yend, int dir)
getSubCurve
in class Curve
public Curve getReversedCurve()
getReversedCurve
in class Curve
public int getSegment(float[] coords)
getSegment
in class Curve
public java.lang.String controlPointString()
controlPointString
in class Curve