Implements LinearInterpolator for rw::math::Rotation3D<T>
More...
#include <LinearInterpolator.hpp>
Inherits Interpolator< rw::math::Rotation3D< T > >.
template<class T>
class rw::trajectory::LinearInterpolator< rw::math::Rotation3D< T > >
Implements LinearInterpolator for rw::math::Rotation3D<T>
The interpolation of rotation is made using a Quaternion slerp interpolation. See rw::math::Quaternion::slerp for further information.
◆ LinearInterpolator()
Construct LinearInterpolator starting a start and finishing in end and taking duration time.
If duration <= 0 an exception is thrown
- Parameters
-
start | [in] Start of interpolator |
end | [in] End of interpolator |
duration | [in] Time it takes to from one end to the other. |
◆ ddx()
◆ duration()
double duration |
( |
| ) |
const |
|
inlinevirtual |
Returns the duration of the interpolator.
The duration is defined as the time it takes to move from one end of the interpolator to the other.
- Returns
- duration
Implements Interpolator< rw::math::Rotation3D< T > >.
◆ dx()
◆ getEnd()
Returns the end rotation of the interpolator.
- Returns
- The end rotation of the interpolator
◆ getStart()
Returns the start rotation of the interpolator.
- Returns
- The start rotation of the interpolator
◆ x()
The documentation for this class was generated from the following file: