Package georegression.struct.curve
Class PolynomialCubic1D_F64
java.lang.Object
georegression.struct.curve.PolynomialCubic1D_F64
- All Implemented Interfaces:
PolynomialCurve_F64
Quadratic curve in 1D: f(x) = a + bx + c x2 + d x3
NOTE: The coefficient order is the reverse of what you will find for sake of consistency as the order of the polynomial is increased.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
a
public double aCoefficients -
b
public double bCoefficients -
c
public double cCoefficients -
d
public double dCoefficients
-
-
Constructor Details
-
PolynomialCubic1D_F64
public PolynomialCubic1D_F64() -
PolynomialCubic1D_F64
public PolynomialCubic1D_F64(double a, double b, double c, double d)
-
-
Method Details
-
evaluate
public double evaluate(double t) -
setTo
-
setTo
-
zero
public void zero()Description copied from interface:PolynomialCurve_F64
Sets all coefficients to zero- Specified by:
zero
in interfacePolynomialCurve_F64
-
toString
-
get
public double get(int coefficient) - Specified by:
get
in interfacePolynomialCurve_F64
-
set
public void set(int coefficient, double value) - Specified by:
set
in interfacePolynomialCurve_F64
-
size
public int size()Description copied from interface:PolynomialCurve_F64
Number of coeffients- Specified by:
size
in interfacePolynomialCurve_F64
-
degree
public int degree()Description copied from interface:PolynomialCurve_F64
Polynomial's degree. This is the number of coefficients minus one.- Specified by:
degree
in interfacePolynomialCurve_F64
-