54 #include <Eigen/Eigen> 55 #include <Eigen/Geometry> 75 template<
typename T,
typename S>
76 inline T
lerp(
const T& a,
const T& b, S alpha)
78 return (1-alpha) * a + alpha * b;
83 template <
typename T,
typename UnitTag,
typename Derived,
typename S>
89 return Derived(a.
value() + diff*alpha);
97 template<
typename T,
typename S>
102 template<
typename T,
typename S>
108 template<
typename T,
typename S>
113 template<
typename T,
typename S>
119 template<
typename T,
typename S>
124 template<
typename T,
typename S>
131 template<
typename T,
typename S>
142 template<
typename T,
typename S>
147 return a.
slerp(alpha, b);
Quaternion slerp(Scalar t, const Quaternion &other) const
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Signed angle that is represented using degrees.
Definition: Angle.h:571
T lerp(const T &a, const T &b, S alpha)
Linear interpolation of different types like scalars, angles and rotations, vectors, etc.
Definition: Lerp.h:76
Derived lerpAngle(const AngleBase< T, UnitTag, Derived > &a, const AngleBase< T, UnitTag, Derived > &b, S alpha)
Definition: Lerp.h:84
const T & value() const
Returns the raw angle value given in the native unit of the angle class.
Definition: Angle.h:252
Unsigned angle that is represented using degrees.
Definition: Angle.h:558
Implementations of angles (values in periodic interval of width 2*pi) with arbitrary base type...
Signed angle that is represented using radians.
Definition: Angle.h:651
Unsigned angle that is represented using radians.
Definition: Angle.h:638
Signed angle that is represented using radians.
Definition: Angle.h:733
T smallestDifferenceValue(const Derived &other) const
Returns the signed difference angle between this angle and the specified other angle that has the sma...
Definition: Angle.h:406
Unsigned angle that is represented using radians.
Definition: Angle.h:717
Base class template for derived Angle implementations.
Definition: Angle.h:183