This class realizes polynomials of degree three as required for the Type II On-Line Trajectory Generation algorithm. More...
#include <TypeIIRMLPolynomial.h>
Public Member Functions | |
void | CalculateRealRoots (unsigned int *NumberOfRoots, double *Root1, double *Root2) const |
Calculates the real roots of the polynomial specified by the attributes of this object. More... | |
double | CalculateValue (const double &t) const |
Calculates the function value at of the polynomial specified by the attributes of this object. More... | |
void | GetCoefficients (double *Coeff2, double *Coeff1, double *Coeff0, double *Diff) const |
Returns the coefficients of the polynomial object. More... | |
void | SetCoefficients (const double &Coeff2, const double &Coeff1, const double &Coeff0, const double &Diff) |
Sets the coefficients of the polynomial object. More... | |
TypeIIRMLPolynomial (void) | |
Constructor of the class TypeIIRMLPolynomial. More... | |
~TypeIIRMLPolynomial (void) | |
Destructor of the class TypeIIRMLPolynomial. More... | |
Public Attributes | |
double | a0 |
Parameter of the polynomial function . More... | |
double | a1 |
Parameter of the polynomial function . More... | |
double | a2 |
Parameter of the polynomial function . More... | |
unsigned int | Degree |
Positive integer number that defines the degree of the current polynomial. More... | |
double | DeltaT |
Parameter of the polynomial function . More... | |
This class realizes polynomials of degree three as required for the Type II On-Line Trajectory Generation algorithm.
Definition at line 65 of file TypeIIRMLPolynomial.h.
TypeIIRMLMath::TypeIIRMLPolynomial::TypeIIRMLPolynomial | ( | void | ) |
Constructor of the class TypeIIRMLPolynomial.
Definition at line 53 of file TypeIIRMLPolynomial.cpp.
TypeIIRMLMath::TypeIIRMLPolynomial::~TypeIIRMLPolynomial | ( | void | ) |
Destructor of the class TypeIIRMLPolynomial.
Definition at line 66 of file TypeIIRMLPolynomial.cpp.
void TypeIIRMLMath::TypeIIRMLPolynomial::CalculateRealRoots | ( | unsigned int * | NumberOfRoots, |
double * | Root1, | ||
double * | Root2 | ||
) | const |
Calculates the real roots of the polynomial specified by the attributes of this object.
Calculates up to three roots of the polynomial of degree two , that is , where and are the desired roots of the current polynomial function.
NumberOfRoots | A pointer to the value of the number of roots (0...2) |
Root1 | A pointer to the value of the first root (only valid for polynomials of degree one and higher) |
Root2 | A pointer to the value of the second root (only valid for polynomials of degree two) |
Definition at line 137 of file TypeIIRMLPolynomial.cpp.
double TypeIIRMLMath::TypeIIRMLPolynomial::CalculateValue | ( | const double & | t | ) | const |
Calculates the function value at of the polynomial specified by the attributes of this object.
Calculates the function value of at
.
t | function input value |
Definition at line 124 of file TypeIIRMLPolynomial.cpp.
void TypeIIRMLMath::TypeIIRMLPolynomial::GetCoefficients | ( | double * | Coeff2, |
double * | Coeff1, | ||
double * | Coeff0, | ||
double * | Diff | ||
) | const |
Returns the coefficients of the polynomial object.
Gets the coefficients for the polynomial of degree three .
Coeff2 | |
Coeff1 | |
Coeff0 | |
Diff |
Definition at line 105 of file TypeIIRMLPolynomial.cpp.
void TypeIIRMLMath::TypeIIRMLPolynomial::SetCoefficients | ( | const double & | Coeff2, |
const double & | Coeff1, | ||
const double & | Coeff0, | ||
const double & | Diff | ||
) |
Sets the coefficients of the polynomial object.
Sets the coefficients for the polynomial of degree three .
Coeff2 | |
Coeff1 | |
Coeff0 | |
Diff |
Definition at line 74 of file TypeIIRMLPolynomial.cpp.
double TypeIIRMLMath::TypeIIRMLPolynomial::a0 |
Parameter of the polynomial function .
Definition at line 229 of file TypeIIRMLPolynomial.h.
double TypeIIRMLMath::TypeIIRMLPolynomial::a1 |
Parameter of the polynomial function .
Definition at line 219 of file TypeIIRMLPolynomial.h.
double TypeIIRMLMath::TypeIIRMLPolynomial::a2 |
Parameter of the polynomial function .
Definition at line 209 of file TypeIIRMLPolynomial.h.
unsigned int TypeIIRMLMath::TypeIIRMLPolynomial::Degree |
Positive integer number that defines the degree of the current polynomial.
Definition at line 199 of file TypeIIRMLPolynomial.h.
double TypeIIRMLMath::TypeIIRMLPolynomial::DeltaT |
Parameter of the polynomial function .
Definition at line 239 of file TypeIIRMLPolynomial.h.