46 #ifndef __TypeIIRMLPolynomial__ 47 #define __TypeIIRMLPolynomial__ 111 ,
const double &Coeff1
112 ,
const double &Coeff0
113 ,
const double &Diff);
141 ,
double *Diff )
const;
172 ,
double *Root2)
const;
double a0
Parameter of the polynomial function .
unsigned int Degree
Positive integer number that defines the degree of the current polynomial.
#define MAXIMAL_NO_OF_POLYNOMIALS
The maximum number of polynomials.
TypeIIRMLPolynomial(void)
Constructor of the class TypeIIRMLPolynomial.
Three arrays of TypeIIRMLMath::TypeIIRMLPolynomial.
double DeltaT
Parameter of the polynomial function .
Header file for functions and definitions of constant values and macros.
void SetCoefficients(const double &Coeff2, const double &Coeff1, const double &Coeff0, const double &Diff)
Sets the coefficients of the polynomial object.
~TypeIIRMLPolynomial(void)
Destructor of the class TypeIIRMLPolynomial.
double a1
Parameter of the polynomial function .
This class realizes polynomials of degree three as required for the Type II On-Line Trajectory Genera...
double a2
Parameter of the polynomial function .
void CalculateRealRoots(unsigned int *NumberOfRoots, double *Root1, double *Root2) const
Calculates the real roots of the polynomial specified by the attributes of this object.
void GetCoefficients(double *Coeff2, double *Coeff1, double *Coeff0, double *Diff) const
Returns the coefficients of the polynomial object.
unsigned char ValidPolynomials
The number of polynomials in use (0 ... MAXIMAL_NO_OF_POLYNOMIALS)
double CalculateValue(const double &t) const
Calculates the function value at of the polynomial specified by the attributes of this object...