Aikido
algorithm.hpp File Reference

Go to the source code of this file.

Namespaces

 aikido
 Format of serialized trajectory in YAML.
 
 aikido::common
 

Functions

template<class T , class Compare >
const T & aikido::common::clamp (const T &v, const T &lo, const T &hi, Compare comp)
 If v compares less than lo, returns lo; otherwise if hi compares less than v, returns hi; otherwise returns v. More...
 
template<class T >
const T & aikido::common::clamp (const T &v, const T &lo, const T &hi)
 Same as above, but uses std::less<T> to compare the values. More...