XX CMake Package
Loading...
Searching...
No Matches
XX::Range Struct Reference

#include <XXRange.h>

Classes

class  Finder
 find min and max values in a set of data More...
class  Mapper
 map a value from one range to another More...
class  Spread
 generate a iterateable sequence of numbers with a start, end and step More...

Static Public Member Functions

template<typename DataType>
static const DataType & 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 & min (const DataType &value1, const DataType &value2)
 return the minimum of two values
template<typename DataType>
static const DataType & max (const DataType &value1, const DataType &value2)
 return the maximum of two values

The documentation for this struct was generated from the following file: