TypeIIRMLPolynomial.h
Go to the documentation of this file.
1 // ---------------------- Doxygen info ----------------------
40 // ----------------------------------------------------------
41 // For a convenient reading of this file's source code,
42 // please use a tab width of four characters.
43 // ----------------------------------------------------------
44 
45 
46 #ifndef __TypeIIRMLPolynomial__
47 #define __TypeIIRMLPolynomial__
48 
49 
50 #include "TypeIIRMLMath.h"
51 
52 namespace TypeIIRMLMath
53 {
54 
55 
56 // ---------------------- Doxygen info ----------------------
64 // ----------------------------------------------------------
66 {
67 public:
68 
69 
70 // ---------------------- Doxygen info ----------------------
75 // ----------------------------------------------------------
76  TypeIIRMLPolynomial(void);
77 
78 
79 // ---------------------- Doxygen info ----------------------
84 // ----------------------------------------------------------
86 
87 
88 // ---------------------- Doxygen info ----------------------
109 // ----------------------------------------------------------
110  void SetCoefficients( const double &Coeff2
111  , const double &Coeff1
112  , const double &Coeff0
113  , const double &Diff);
114 
115 
116 // ---------------------- Doxygen info ----------------------
137 // ----------------------------------------------------------
138  void GetCoefficients( double *Coeff2
139  , double *Coeff1
140  , double *Coeff0
141  , double *Diff ) const;
142 
143 
144 
145 
146 // ---------------------- Doxygen info ----------------------
169 // ----------------------------------------------------------
170  void CalculateRealRoots ( unsigned int *NumberOfRoots
171  , double *Root1
172  , double *Root2) const;
173 
174 
175 // ---------------------- Doxygen info ----------------------
189 // ----------------------------------------------------------
190  double CalculateValue(const double &t) const;
191 
192 
193 // ---------------------- Doxygen info ----------------------
198 // ----------------------------------------------------------
199  unsigned int Degree;
200 
201 
202 // ---------------------- Doxygen info ----------------------
208 // ----------------------------------------------------------
209  double a2;
210 
211 
212 // ---------------------- Doxygen info ----------------------
218 // ----------------------------------------------------------
219  double a1;
220 
221 
222 // ---------------------- Doxygen info ----------------------
228 // ----------------------------------------------------------
229  double a0;
230 
231 
232 // ---------------------- Doxygen info ----------------------
238 // ----------------------------------------------------------
239  double DeltaT;
240 
241 }; // class TypeIIRMLPolynomial
242 
243 
244 // ---------------------- Doxygen info ----------------------
259 // ----------------------------------------------------------
261 {
262 // ---------------------- Doxygen info ----------------------
272 // ----------------------------------------------------------
273  double PolynomialTimes [MAXIMAL_NO_OF_POLYNOMIALS] ;
274 
275 
276 // ---------------------- Doxygen info ----------------------
287 // ----------------------------------------------------------
289 
290 
291 // ---------------------- Doxygen info ----------------------
302 // ----------------------------------------------------------
304 
305 
306 // ---------------------- Doxygen info ----------------------
317 // ----------------------------------------------------------
319 
320 
321 // ---------------------- Doxygen info ----------------------
326 // ----------------------------------------------------------
327  unsigned char ValidPolynomials ;
328 };
329 
330 
331 } // namespace TypeIIRMLMath
332 
333 
334 #endif
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...


libreflexxestype2
Author(s):
autogenerated on Sat Nov 21 2020 03:17:34