Adobe Source Libraries 2.0.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
clamp.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  adobe

Functions

template<typename T, typename R>
const T & clamp (const T &x, const T &min, const T &max, R r)
 clamp implementation
template<typename T, typename R>
T & clamp (T &x, T &min, T &max, R r)
 clamp implementation
template<typename T>
const T & clamp (const T &x, const T &min, const T &max)
 clamp implementation
template<typename T>
T & clamp (T &x, T &min, T &max)
 clamp implementation
template<typename T, typename R>
const T & clamp_unordered (const T &x, const T &min, const T &max, R r)
 clamp_unordered implementation
template<typename T, typename R>
T & clamp_unordered (T &x, T &min, T &max, R r)
 clamp_unordered implementation
template<typename T>
const T & clamp_unordered (const T &x, const T &min, const T &max)
 clamp_unordered implementation
template<typename T>
T & clamp_unordered (T &x, T &min, T &max)
 clamp_unordered implementation