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) |
T karto::math::AlignValue | ( | size_t | value, |
size_t | alignValue = 8 |
||
) | [inline] |
const T& karto::math::Clip | ( | const T & | n, |
const T & | minValue, | ||
const T & | maxValue | ||
) | [inline] |
kt_double karto::math::DegreesToRadians | ( | kt_double | degrees | ) | [inline] |
kt_bool karto::math::DoubleEqual | ( | kt_double | a, |
kt_double | b | ||
) | [inline] |
kt_bool karto::math::InRange | ( | const T & | value, |
const T & | a, | ||
const T & | b | ||
) | [inline] |
kt_bool karto::math::IsUpTo | ( | const T & | value, |
const T & | maximum | ||
) | [inline] |
kt_bool karto::math::IsUpTo< kt_int32u > | ( | const kt_int32u & | value, |
const kt_int32u & | maximum | ||
) | [inline] |
const T& karto::math::Maximum | ( | const T & | value1, |
const T & | value2 | ||
) | [inline] |
const T& karto::math::Minimum | ( | const T & | value1, |
const T & | value2 | ||
) | [inline] |
kt_double karto::math::NormalizeAngle | ( | kt_double | angle | ) | [inline] |
kt_double karto::math::NormalizeAngleDifference | ( | kt_double | minuend, |
kt_double | subtrahend | ||
) | [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 |
kt_double karto::math::RadiansToDegrees | ( | kt_double | radians | ) | [inline] |
kt_double karto::math::Round | ( | kt_double | value | ) | [inline] |
T karto::math::Square | ( | T | value | ) | [inline] |