Class translotator::interpolators::Lerper¶
template <typename Container>
ClassList > translotator > interpolators > Lerper
Linear interpolation class. More...
#include <Lerp.hpp>
Public Functions¶
Type | Name |
---|---|
Lerper () = default |
|
Lerper (const Container & start, const Container & end) |
|
const Container & | getDiff () const |
const Container & | getEnd () const |
const Container & | getStart () const Update difference between start and end. |
Container | interpolate (ScalarType t) const Lerp operation for Lerper . |
Container | operator() (ScalarType t) const Lerp operation for Lerper . |
void | setDiff (const Container & diff) |
void | setEnd (const Container & end) |
void | setStart (const Container & start) |
void | updateDiff () |
~Lerper () = default |
Detailed Description¶
Template parameters:
Container
Matrix base type
Public Functions Documentation¶
function Lerper [1/2]¶
translotator::interpolators::Lerper::Lerper () = default
constructor
function Lerper [2/2]¶
inline translotator::interpolators::Lerper::Lerper (
const Container & start,
const Container & end
)
function getDiff¶
inline const Container & translotator::interpolators::Lerper::getDiff () const
function getEnd¶
inline const Container & translotator::interpolators::Lerper::getEnd () const
function getStart¶
Update difference between start and end.
inline const Container & translotator::interpolators::Lerper::getStart () const
getter & setter
function interpolate¶
inline Container translotator::interpolators::Lerper::interpolate (
ScalarType t
) const
function operator()¶
inline Container translotator::interpolators::Lerper::operator() (
ScalarType t
) const
function setDiff¶
inline void translotator::interpolators::Lerper::setDiff (
const Container & diff
)
function setEnd¶
inline void translotator::interpolators::Lerper::setEnd (
const Container & end
)
function setStart¶
inline void translotator::interpolators::Lerper::setStart (
const Container & start
)
function updateDiff¶
inline void translotator::interpolators::Lerper::updateDiff ()
function ~Lerper¶
translotator::interpolators::Lerper::~Lerper () = default
The documentation for this class was generated from the following file include/translotator/interpolators/Lerp.hpp