|
Robotics Library
0.6.2
|
Go to the documentation of this file.
27 #ifndef _RL_MATH_CUBIC_H_
28 #define _RL_MATH_CUBIC_H_
39 template<
typename T >
44 te(::std::numeric_limits<
Real>::max()),
62 return 2 *
c2 + 6 *
c3 * t;
75 return c1 + 2 *
c2 * t + 3 *
c3 * ::std::pow(t, 2);
80 return c0 +
c1 * t +
c2 * ::std::pow(t, 2) +
c3 * ::std::pow(t, 3);
107 #endif // _RL_MATH_CUBIC_H_
T c0
Definition: Cubic.h:96
T c2
Definition: Cubic.h:100
virtual ~Cubic()
Definition: Cubic.h:56
T x(const Real &t) const
Definition: Cubic.h:78
T x0
Definition: Cubic.h:85
T c1
Definition: Cubic.h:98
T ve
Definition: Cubic.h:91
T v0
Definition: Cubic.h:89
T v(const Real &t) const
Definition: Cubic.h:73
Real te
Definition: Cubic.h:83
T a(const Real &t) const
Definition: Cubic.h:60
T c3
Definition: Cubic.h:102
double Real
Definition: Real.h:34
T xe
Definition: Cubic.h:87
Cubic()
Definition: Cubic.h:43
void interpolate()
Definition: Cubic.h:65