XX CMake Package
Loading...
Searching...
No Matches
Functions

Helper functions. More...

Detailed Description

Helper functions.

Functions

template<typename DataType>
static const DataType & XX::Range::clamp (const DataType &value, const DataType &min, const DataType &max)
 clamp a value to a range defined by a min and max value
template<typename DataType>
static const DataType & XX::Range::min (const DataType &value1, const DataType &value2)
 return the minimum of two values
template<typename DataType>
static const DataType & XX::Range::max (const DataType &value1, const DataType &value2)
 return the maximum of two values

Function Documentation

◆ clamp()

template<typename DataType>
const DataType & XX::Range::clamp ( const DataType & value,
const DataType & min,
const DataType & max )
static

clamp a value to a range defined by a min and max value

◆ max()

template<typename DataType>
const DataType & XX::Range::max ( const DataType & value1,
const DataType & value2 )
static

return the maximum of two values

◆ min()

template<typename DataType>
const DataType & XX::Range::min ( const DataType & value1,
const DataType & value2 )
static

return the minimum of two values