Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

math::Clamp< T > Struct Template Reference

clamp a value to given boundaries More...

#include <utils.hpp>

Inheritance diagram for math::Clamp< T >:

Inheritance graph
[legend]
Collaboration diagram for math::Clamp< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Clamp (const T &lb=Traits< T >::zero(), const T &ub=Traits< T >::zero())
operator() (const T &x) const
operator() (const T &x, const T &lb, const T &ub)

Detailed Description

template<typename T>
struct math::Clamp< T >

clamp a value to given boundaries

Definition at line 59 of file utils.hpp.


Constructor & Destructor Documentation

template<typename T>
math::Clamp< T >::Clamp const T &  lb = Traits<T>::zero(),
const T &  ub = Traits<T>::zero()
[inline]
 

Definition at line 61 of file utils.hpp.


Member Function Documentation

template<typename T>
T math::Clamp< T >::operator() const T &  x,
const T &  lb,
const T &  ub
[inline]
 

Definition at line 63 of file utils.hpp.

template<typename T>
T math::Clamp< T >::operator() const T &  x  )  const [inline]
 

Definition at line 62 of file utils.hpp.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 2 11:33:28 2003 for math by doxygen 1.3.2