Go to the documentation of this file.
18 #include "../../include/ecl/geometry/polynomial.hpp"
25 namespace blueprints {
53 coefficients << a_0, a_1;
70 coefficients << a_0, a_1;
130 double a_1 = (
y_final-a_0-a_2*dx*dx - a_3*dx*dx*dx)/dx;
131 coefficients << a_0, a_1, a_2, a_3;
166 coefficients << a_0, a_1, a_2, a_3, a_4, a_5;
191 using blueprints::LinearInterpolation;
192 using blueprints::LinearPointSlopeForm;
193 using blueprints::CubicDerivativeInterpolation;
194 using blueprints::CubicSecondDerivativeInterpolation;
195 using blueprints::QuinticInterpolation;
202 return LinearInterpolation(x_i, y_i, x_f, y_f);
226 const double x_f,
const double y_f,
const double ydot_f,
const double yddot_f) {
static LinearInterpolation Interpolation(const double x_i, const double y_i, const double x_f, const double y_f)
Blueprint for an interpolating a linear function connecting two points.
void apply(ecl::LinearFunction &function) const
Apply the blueprint to configure an existing object.
ecl::LinearFunction instantiate()
Instantiate a copy of the object that is blueprinted.
void shift_horizontal(const double &shift)
Horizontal shift transform.
ecl::CubicPolynomial instantiate()
Instantiate a copy of the object that is blueprinted.
Blueprint for interpolating a cubic polynomial between end point conditions.
Blueprint for interpolating a cubic polynomial between end point conditions.
Polynomial< 1 > LinearFunction
Mathematical term for 1st order polynomials.
void apply(base_type &polynomial) const
Apply the blueprint to configure an existing object.
base_type instantiate()
Instantiate a copy of the object that is blueprinted.
Blueprint for interpolating a quintic polynomial between end point conditions.
ecl::QuinticPolynomial instantiate()
Instantiate a copy of the object that is blueprinted.
Representation of a polynomial function of n-th degree.
void apply(ecl::CubicPolynomial &polynomial) const
Apply the blueprint to configure an existing object.
void apply(ecl::QuinticPolynomial &polynomial) const
Apply the blueprint to configure an existing object.
Polynomial< 5 > QuinticPolynomial
Mathematical term for 5th order polynomials.
Polynomial< 3 > CubicPolynomial
Mathematical term for 3rd order polynomials.
Coefficients & coefficients()
Handle to the coefficient array, use to initialise the polynomial.
Embedded control libraries.
Array< double, N+1 > Coefficients
The coefficient container storage type.
ecl_geometry
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:39