Linear Class Reference

Linear interpolation visitor: Interpolates between the given values linearly. More...

#include <RobotAPI/libraries/SimpleTrajectory/interpolate/linear.h>

Public Types

using result_type = VariantValue
 Exposed result type.
 

Public Member Functions

 Linear (float t)
 Interpolator.
 
VariantValue operator() (const Eigen::MatrixXf &lhs, const Eigen::MatrixXf &rhs) const
 
VariantValue operator() (const Eigen::Quaternionf &lhs, const Eigen::Quaternionf &rhs) const
 
VariantValue operator() (const float &lhs, const float &rhs) const
 
template<typename U, typename V>
VariantValue operator() (const U &, const V &) const
 

Detailed Description

Linear interpolation visitor: Interpolates between the given values linearly.

Definition at line 12 of file linear.h.

Member Typedef Documentation

◆ result_type

Exposed result type.

Definition at line 15 of file linear.h.

Constructor & Destructor Documentation

◆ Linear()

Linear ( float t)
inline

Interpolator.

Parameters
tin [0, 1], where t = 0 for lhs and t = 1 for rhs.

Definition at line 22 of file linear.h.

Member Function Documentation

◆ operator()() [1/4]

VariantValue operator() ( const Eigen::MatrixXf & lhs,
const Eigen::MatrixXf & rhs ) const
inline

Definition at line 40 of file linear.h.

◆ operator()() [2/4]

VariantValue operator() ( const Eigen::Quaternionf & lhs,
const Eigen::Quaternionf & rhs ) const
inline

Definition at line 46 of file linear.h.

+ Here is the call graph for this function:

◆ operator()() [3/4]

VariantValue operator() ( const float & lhs,
const float & rhs ) const
inline

Definition at line 34 of file linear.h.

◆ operator()() [4/4]

template<typename U, typename V>
VariantValue operator() ( const U & ,
const V &  ) const
inline

Definition at line 28 of file linear.h.


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