MIRA
Namespaces | Functions
Lerp.h File Reference

Functions for linear interpolation of different types like scalars, angles and rotations. More...

#include <platform/Platform.h>
#include <Eigen/Eigen>
#include <Eigen/Geometry>
#include <math/Angle.h>
Include dependency graph for Lerp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Functions

template<typename T , typename S >
lerp (const T &a, const T &b, S alpha)
 Linear interpolation of different types like scalars, angles and rotations, vectors, etc. More...
 
template<typename T , typename UnitTag , typename Derived , typename S >
Derived lerpAngle (const AngleBase< T, UnitTag, Derived > &a, const AngleBase< T, UnitTag, Derived > &b, S alpha)
 
template<typename T , typename S >
Degree< T > lerp (const Degree< T > &a, const Degree< T > &b, S alpha)
 
template<typename T , typename S >
SignedDegree< T > lerp (const SignedDegree< T > &a, const SignedDegree< T > &b, S alpha)
 
template<typename T , typename S >
Radian< T > lerp (const Radian< T > &a, const Radian< T > &b, S alpha)
 
template<typename T , typename S >
SignedRadian< T > lerp (const SignedRadian< T > &a, const SignedRadian< T > &b, S alpha)
 
template<typename T , typename S >
Angle< T > lerp (const Angle< T > &a, const Angle< T > &b, S alpha)
 
template<typename T , typename S >
SignedAngle< T > lerp (const SignedAngle< T > &a, const SignedAngle< T > &b, S alpha)
 
template<typename T , typename S >
Eigen::Rotation2D< T > lerp (const Eigen::Rotation2D< T > &a, const Eigen::Rotation2D< T > &b, S alpha)
 
template<typename T , typename S >
Eigen::Quaternion< T > lerp (const Eigen::Quaternion< T > &a, const Eigen::Quaternion< T > &b, S alpha)
 

Detailed Description

Functions for linear interpolation of different types like scalars, angles and rotations.

Rotations are interpolated via spherical linear interpolation (slerp).

Author
Erik Einhorn
Date
2010/09/02