VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
InputUtil Namespace Reference

Namespace containing frequently used static utility functions for the GameInput library. More...

Functions

template<typename T >
const T & clamp (const T &a, const T &min, const T &max)
 Returns the value a clamped between min and max. More...
 

Detailed Description

Namespace containing frequently used static utility functions for the GameInput library.

Function Documentation

template<typename T >
const T& InputUtil::clamp ( const T &  a,
const T &  min,
const T &  max 
)

Returns the value a clamped between min and max.

Parameters
aValue to clamp
minMinimum value to return
maxMaximum value to return