Functions | |
template<class T > | |
T | AlignValue (size_t value, size_t alignValue=8) |
template<typename T > | |
const T & | Clip (const T &n, const T &minValue, const T &maxValue) |
kt_double | DegreesToRadians (kt_double degrees) |
kt_bool | DoubleEqual (kt_double a, kt_double b) |
template<typename T > | |
kt_bool | InRange (const T &value, const T &a, const T &b) |
template<typename T > | |
kt_bool | IsUpTo (const T &value, const T &maximum) |
template<> | |
kt_bool | IsUpTo< kt_int32u > (const kt_int32u &value, const kt_int32u &maximum) |
template<typename T > | |
const T & | Maximum (const T &value1, const T &value2) |
template<typename T > | |
const T & | Minimum (const T &value1, const T &value2) |
kt_double | NormalizeAngle (kt_double angle) |
kt_double | NormalizeAngleDifference (kt_double minuend, kt_double subtrahend) |
kt_double | RadiansToDegrees (kt_double radians) |
kt_double | Round (kt_double value) |
template<typename T > | |
T | Square (T value) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns an equivalent angle to the first parameter such that the difference when the second parameter is subtracted from this new value is an angle in the normalized range of [-pi, pi], i.e. abs(minuend - subtrahend) <= pi.
minuend | |
subtrahend |