In e32std.h
, there are also a variety of inline
templated functions for performing simple operations:
return lower of two values: Min()
return higher of two values: Max()
return absolute value: Abs()
check if a value is between two other values: Rng()
These can be called on any type that supports the required operators
(<
,>
,<=
,>=
,-
).