Functions |
| template<class Type > |
| int | lwpp::Ceil (const Type x) |
| template<class Type > |
| Type | lwpp::Clamp (const Type value, const Type min, const Type max) |
| | Clamp a value between min and max.
|
| template<class Type > |
| Type | lwpp::Degrees (const Type rad) |
| | Radians to degree conversion.
|
| int | lwpp::Double2Int (double val) |
| | Fast double to integer conversion.
|
| template<class Type > |
| int | lwpp::Floor (const Type x) |
| template<class Type > |
| bool | lwpp::inRange (const Type x, const Type min, const Type max) |
| | return true if the value is within the range, including the bounds
|
| template<class T > |
| T | lwpp::Lerp (const double f, const T a, const T b) |
| template<class Type > |
| Type | lwpp::log2 (const Type a) |
| template<class Type > |
| Type | lwpp::Max (Type a, Type b) |
| | Maximum.
|
| template<class Type > |
| Type | lwpp::Max (const Type v[3]) |
| template<class Type > |
| Type | lwpp::Min (const Type a, const Type b) |
| | Minimum.
|
| template<class Type > |
| Type | lwpp::Min (const Type v[3]) |
| template<class Type > |
| int | lwpp::Mod (const Type a, const Type b) |
| template<class Type > |
| Type | lwpp::Normalize (const Type x, const Type min, const Type max) |
| int | lwpp::Pow2 (const int n) |
| template<class Type > |
| Type | lwpp::Radians (const Type deg) |
| | Degrees to radians conversion.
|
| template<class Type > |
| Type | lwpp::Range (const Type x, const Type min, const Type max) |
| template<class Type > |
| int | lwpp::Round (const double r) |
| int | lwpp::Round2Int (double val) |
| | Fast rounding of a double to an integer.
|
| template<class T > |
| T | lwpp::SignOf (const T a) |
| template<class Type > |
| Type | lwpp::SmoothStep (const Type value, const Type min, const Type max) |
| template<class Type > |
| Type | lwpp::SmoothStep (const Type value) |
| template<class Type > |
| Type | lwpp::Sqr (const Type a) |
| | Minimum.
|
| template<class T > |
| void | lwpp::Swap (T &a, T &b) |
| void | lwpp::xyztohp (const double x, const double y, const double z, double &h, double &p) |
| double | lwpp::xztoh (const double x, const double z) |