Aikido
algorithm.hpp
Go to the documentation of this file.
1
#ifndef AIKIDO_COMMON_ALGORITHM_HPP_
2
#define AIKIDO_COMMON_ALGORITHM_HPP_
3
4
namespace
aikido
{
5
namespace
common {
6
24
template
<
class
T,
class
Compare>
25
const
T&
clamp
(
const
T& v,
const
T& lo,
const
T& hi, Compare comp);
26
28
template
<
class
T>
29
const
T&
clamp
(
const
T& v,
const
T& lo,
const
T& hi);
30
31
}
// namespace common
32
}
// namespace aikido
33
34
#include "
aikido/common/detail/algorithm-impl.hpp
"
35
36
#endif // AIKIDO_COMMON_ALGORITHM_HPP_
aikido
Format of serialized trajectory in YAML.
Definition:
algorithm.hpp:4
algorithm-impl.hpp
aikido::common::clamp
const T & 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 r...
Definition:
algorithm-impl.hpp:14
include
aikido
common
algorithm.hpp
Generated on Fri Mar 10 2023 20:07:57 for Aikido by
1.8.17