Package georegression.struct.curve
Class PolynomialQuadratic1D_F64
java.lang.Object
georegression.struct.curve.PolynomialQuadratic1D_F64
- All Implemented Interfaces:
PolynomialCurve_F64
Quadratic curve in 1D: f(x) = a + bx + c x2.
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
-
-
Constructor Details
-
PolynomialQuadratic1D_F64
public PolynomialQuadratic1D_F64() -
PolynomialQuadratic1D_F64
public PolynomialQuadratic1D_F64(double a, double b, double c)
-
-
Method Details
-
evaluate
public double evaluate(double t) -
setTo
-
setTo
-
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
-
zero
public void zero()Description copied from interface:PolynomialCurve_F64
Sets all coefficients to zero- Specified by:
zero
in interfacePolynomialCurve_F64
-