OSVR-Core
Namespaces | Functions
Clamp.h File Reference

Header. More...

#include <algorithm>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

template<typename T >
T osvr::vbtracker::clamp (T v, T minVal, T maxVal)
 Returns the value of the parameter v, or of the bounds minVal or maxVal if it exceeds them. More...
 

Detailed Description

Header.

Date
2016
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ clamp()

template<typename T >
T osvr::vbtracker::clamp ( T  v,
T  minVal,
T  maxVal 
)
inline

Returns the value of the parameter v, or of the bounds minVal or maxVal if it exceeds them.