Go to the source code of this file.
|
constexpr float | eu::cabs (float r) |
|
constexpr bool | eu::is_zero (float r, float epsilon=kk::epsilon) |
|
constexpr bool | eu::is_equal (float lhs, float rhs, float epsilon=kk::epsilon) |
|
int | eu::floor_to_int (float v) |
|
int | eu::ceil_to_int (float v) |
|
constexpr int | eu::get_sign (float r) |
| Calculates the sign as a positive or a negative int.
|
|
constexpr float | eu::get_sign (bool b) |
| Returns 1 if true or -1.
|
|
constexpr float | eu::lerp_float (float f, float scale, float t) |
|
constexpr float | eu::square (float r) |
| Return r * r
|
|
constexpr float | eu::min (float lhs, float rhs) |
|
constexpr float | eu::max (float lhs, float rhs) |
|
constexpr float | eu::clamp_zero (float value, float def=0.0f, float epsilon=kk::epsilon) |
| If the value is close to zero, def is returned.
|
|