Package georegression.struct.curve
Class PolynomialCubic1D_F32
java.lang.Object
georegression.struct.curve.PolynomialCubic1D_F32
- All Implemented Interfaces:
PolynomialCurve_F32
@Generated("georegression.struct.curve.PolynomialCubic1D_F64")
public class PolynomialCubic1D_F32
extends Object
implements PolynomialCurve_F32
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 float aCoefficients -
b
public float bCoefficients -
c
public float cCoefficients -
d
public float dCoefficients
-
-
Constructor Details
-
PolynomialCubic1D_F32
public PolynomialCubic1D_F32() -
PolynomialCubic1D_F32
public PolynomialCubic1D_F32(float a, float b, float c, float d)
-
-
Method Details
-
evaluate
public float evaluate(float t) -
setTo
-
setTo
-
zero
public void zero()Description copied from interface:PolynomialCurve_F32
Sets all coefficients to zero- Specified by:
zero
in interfacePolynomialCurve_F32
-
toString
-
get
public float get(int coefficient) - Specified by:
get
in interfacePolynomialCurve_F32
-
set
public void set(int coefficient, float value) - Specified by:
set
in interfacePolynomialCurve_F32
-
size
public int size()Description copied from interface:PolynomialCurve_F32
Number of coeffients- Specified by:
size
in interfacePolynomialCurve_F32
-
degree
public int degree()Description copied from interface:PolynomialCurve_F32
Polynomial's degree. This is the number of coefficients minus one.- Specified by:
degree
in interfacePolynomialCurve_F32
-