Ocean
Ocean::Interpolation::LinearInterpolation< T > Class Template Reference

This class implements a helper linear interpolation helper class allowing to overload the interpolation function for specific data types. More...

Public Member Functions

float interpolate (const float &v0, const float &v1, const double &t)
 
HomogenousMatrixT4< float > interpolate (const HomogenousMatrixT4< float > &v0, const HomogenousMatrixT4< float > &v1, const TFactor &t)
 
HomogenousMatrixT4< double > interpolate (const HomogenousMatrixT4< double > &v0, const HomogenousMatrixT4< double > &v1, const TFactor &t)
 
std::pair< VectorT3< float >, QuaternionT< float > > interpolate (const std::pair< VectorT3< float >, QuaternionT< float >> &v0, const std::pair< VectorT3< float >, QuaternionT< float >> &v1, const TFactor &t)
 
std::pair< VectorT3< double >, QuaternionT< double > > interpolate (const std::pair< VectorT3< double >, QuaternionT< double >> &v0, const std::pair< VectorT3< double >, QuaternionT< double >> &v1, const TFactor &t)
 
std::pair< VectorT3< float >, RotationT< float > > interpolate (const std::pair< VectorT3< float >, RotationT< float >> &v0, const std::pair< VectorT3< float >, RotationT< float >> &v1, const TFactor &t)
 
std::pair< VectorT3< double >, RotationT< double > > interpolate (const std::pair< VectorT3< double >, RotationT< double >> &v0, const std::pair< VectorT3< double >, RotationT< double >> &v1, const TFactor &t)
 
Pose interpolate (const Pose &v0, const Pose &v1, const TFactor &t)
 
QuaternionT< float > interpolate (const QuaternionT< float > &v0, const QuaternionT< float > &v1, const TFactor &t)
 
QuaternionT< double > interpolate (const QuaternionT< double > &v0, const QuaternionT< double > &v1, const TFactor &t)
 
RotationT< float > interpolate (const RotationT< float > &v0, const RotationT< float > &v1, const TFactor &t)
 
RotationT< double > interpolate (const RotationT< double > &v0, const RotationT< double > &v1, const TFactor &t)
 

Static Public Member Functions

template<typename TFactor >
static T interpolate (const T &v0, const T &v1, const TFactor &t)
 Performs a linear interpolation between two values. More...
 

Detailed Description

template<typename T>
class Ocean::Interpolation::LinearInterpolation< T >

This class implements a helper linear interpolation helper class allowing to overload the interpolation function for specific data types.

Template Parameters
TData type of the values to be interpolated

Member Function Documentation

◆ interpolate() [1/13]

float Ocean::Interpolation::LinearInterpolation< float >::interpolate ( const float &  v0,
const float &  v1,
const double &  t 
)
inline

◆ interpolate() [2/13]

HomogenousMatrixT4< double > Ocean::Interpolation::LinearInterpolation< HomogenousMatrixT4< double > >::interpolate ( const HomogenousMatrixT4< double > &  v0,
const HomogenousMatrixT4< double > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [3/13]

HomogenousMatrixT4< float > Ocean::Interpolation::LinearInterpolation< HomogenousMatrixT4< float > >::interpolate ( const HomogenousMatrixT4< float > &  v0,
const HomogenousMatrixT4< float > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [4/13]

Pose Ocean::Interpolation::LinearInterpolation< Pose >::interpolate ( const Pose v0,
const Pose v1,
const TFactor &  t 
)
inline

◆ interpolate() [5/13]

QuaternionT< double > Ocean::Interpolation::LinearInterpolation< QuaternionT< double > >::interpolate ( const QuaternionT< double > &  v0,
const QuaternionT< double > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [6/13]

QuaternionT< float > Ocean::Interpolation::LinearInterpolation< QuaternionT< float > >::interpolate ( const QuaternionT< float > &  v0,
const QuaternionT< float > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [7/13]

RotationT< double > Ocean::Interpolation::LinearInterpolation< RotationT< double > >::interpolate ( const RotationT< double > &  v0,
const RotationT< double > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [8/13]

RotationT< float > Ocean::Interpolation::LinearInterpolation< RotationT< float > >::interpolate ( const RotationT< float > &  v0,
const RotationT< float > &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [9/13]

std::pair< VectorT3< double >, QuaternionT< double > > Ocean::Interpolation::LinearInterpolation< std::pair< VectorT3< double >, QuaternionT< double > > >::interpolate ( const std::pair< VectorT3< double >, QuaternionT< double >> &  v0,
const std::pair< VectorT3< double >, QuaternionT< double >> &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [10/13]

std::pair< VectorT3< double >, RotationT< double > > Ocean::Interpolation::LinearInterpolation< std::pair< VectorT3< double >, RotationT< double > > >::interpolate ( const std::pair< VectorT3< double >, RotationT< double >> &  v0,
const std::pair< VectorT3< double >, RotationT< double >> &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [11/13]

std::pair< VectorT3< float >, QuaternionT< float > > Ocean::Interpolation::LinearInterpolation< std::pair< VectorT3< float >, QuaternionT< float > > >::interpolate ( const std::pair< VectorT3< float >, QuaternionT< float >> &  v0,
const std::pair< VectorT3< float >, QuaternionT< float >> &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [12/13]

std::pair< VectorT3< float >, RotationT< float > > Ocean::Interpolation::LinearInterpolation< std::pair< VectorT3< float >, RotationT< float > > >::interpolate ( const std::pair< VectorT3< float >, RotationT< float >> &  v0,
const std::pair< VectorT3< float >, RotationT< float >> &  v1,
const TFactor &  t 
)
inline

◆ interpolate() [13/13]

template<typename T >
template<typename TFactor >
T Ocean::Interpolation::LinearInterpolation< T >::interpolate ( const T &  v0,
const T &  v1,
const TFactor &  t 
)
inlinestatic

Performs a linear interpolation between two values.

Parameters
v0First value
v1Second value
tInterpolation factor, with range [0, 1]
Returns
Resulting interpolation value
Template Parameters
TFactorData type of the interpolation value

The documentation for this class was generated from the following file: