|
| float | eu::sin (const An &ang) |
| float | eu::cos (const An &ang) |
| float | eu::tan (const An &ang) |
| An | eu::asin (float v) |
| An | eu::acos (float v) |
| An | eu::atan (float v) |
| An | eu::atan2 (float y, float x) |
| An | eu::operator+ (const An &lhs, const An &rhs) |
| An | eu::operator- (const An &lhs, const An &rhs) |
| An | eu::operator* (const An &lhs, float rhs) |
| An | eu::operator/ (const An &lhs, float rhs) |
| An | eu::operator* (float rhs, const An &lhs) |
| std::string | eu::string_from (const An &a) |
| bool | eu::operator< (const An &lhs, const An &rhs) |
| bool | eu::operator<= (const An &lhs, const An &rhs) |
| bool | eu::operator> (const An &lhs, const An &rhs) |
| bool | eu::operator>= (const An &lhs, const An &rhs) |
| An | eu::lerp_angle (const An &from, float v, const An &to) |
| AA | eu::rha (const n3 &axis, const An &angle) |
| std::string | eu::string_from (const AA &aa) |
| std::string | eu::string_from (const Ypr &ypr) |
| std::string | eu::string_from (const m4 &m) |
| | Convert a matrix to a string representation, prefer fmt.
|
| m4 | eu::operator+ (const m4 &lhs, const m4 &rhs) |
| m4 | eu::operator- (const m4 &lhs, const m4 &rhs) |
| m4 | eu::operator* (const m4 &lhs, const m4 &rhs) |
| v4 | eu::operator* (const m4 &lhs, const v4 &rhs) |
| 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.
|
| constexpr float | eu::keep_within01 (float f) |
| float | eu::dot (const Q &lhs, const Q &rhs) |
| std::string | eu::string_from (const Q &v) |
| | Converts a quaternion to string, prefer fmt.
|
| Q | eu::operator* (const Q &lhs, const Q &rhs) |
| Q | eu::operator* (float scale, const Q &q) |
| Q | eu::operator* (const Q &q, float scale) |
| template<typename T> |
| R< T > | eu::make_range (T min, T max) |
| | Create a range from min to max (inclusive).
|
| template<typename T> |
| R< T > | eu::make_range (T max) |
| | Create a range from zero (0) to max (inclusive).
|
| float | eu::from_01f (float lower_bound, float upper_bound, float value) |
| template<typename T> |
| T | eu::from_01 (const R< T > &range, float value) |
| | Converts a value in 0-1 range to a custom range.
|
| template<> |
| float | eu::from_01 (const R< float > &range, float value) |
| template<typename T> |
| float | eu::to01 (const R< T > &range, T value) |
| | Converts a value in a range to the 0-1 range.
|
| template<typename T> |
| T | eu::get360_angular (const R< T > &range, float value) |
| template<typename T, typename F> |
| T | eu::remap_to (const R< F > &from, const R< T > &to, F value) |
| | Remaps a value from one range to another.
|
| template<typename T> |
| bool | eu::is_within (const R< T > &range, T value) |
| | Returns true if a value is withing a range.
|
| template<typename T> |
| T | eu::keep_within (const R< T > &range, T value) |
| | Returns a value that is kept within the range.
|
| template<typename T> |
| T | eu::wrap (const R< T > &range, T value) |
| | Returns a value that wraps around the range.
|
| constexpr bool | eu::operator== (const Size &lhs, const Size &rhs) |
| std::string | eu::string_from (const Size &v) |
| | converts a 2d unit vector to a string, prefer fmt
|
| v2 | eu::operator+ (const v2 &lhs, const v2 &rhs) |
| v2 | eu::operator- (const v2 &lhs, const v2 &rhs) |
| v2 | eu::operator* (const v2 &lhs, float rhs) |
| v2 | eu::operator* (const v2 &lhs, const v2 &rhs) |
| v2 | eu::operator* (float lhs, const v2 &rhs) |
| v2 | eu::operator* (const n2 &lhs, float rhs) |
| v2 | eu::operator* (float lhs, const n2 &rhs) |
| v2 | eu::operator/ (const v2 &lhs, float rhs) |
| float | eu::dot (const v2 &lhs, const v2 &rhs) |
| v2 | eu::lerp_vec2f (const v2 &from, float v, const v2 &to) |
| std::string | eu::string_from (const v2 &v) |
| | converts a 2d vector to a string, prefer fmt
|
| std::string | eu::string_from (const n2 &v) |
| | converts a 2d unit vector to a string, prefer fmt
|
| v3 | eu::operator+ (const v3 &lhs, const v3 &rhs) |
| v3 | eu::operator- (const v3 &lhs, const v3 &rhs) |
| v3 | eu::operator* (float lhs, const v3 &rhs) |
| v3 | eu::operator* (const v3 &lhs, float rhs) |
| v3 | eu::operator/ (const v3 &lhs, float rhs) |
| v3 | eu::operator/ (float lhs, const v3 &rhs) |
| v3 | eu::lerp_v3 (const v3 &f, float v, const v3 &t) |
| std::string | eu::string_from (const v3 &v) |
| | convert a 3d vector to string, prefer fmt
|
| std::string | eu::string_from (const n3 &v) |
| | converts a 3d unit vector to string, prefer fmt
|
| constexpr v3 | eu::min (const v3 &lhs, const v3 &rhs) |
| | component wise min value
|
| constexpr v3 | eu::max (const v3 &lhs, const v3 &rhs) |
| | component wise max value
|
| std::string | eu::string_from (const v4 &v) |
| | converts a 4d vector to a string, prefer fmt
|