|
| float | sin (const An &ang) |
| |
| float | cos (const An &ang) |
| |
| float | tan (const An &ang) |
| |
| An | asin (float v) |
| |
| An | acos (float v) |
| |
| An | atan (float v) |
| |
| An | atan2 (float y, float x) |
| |
| An | operator+ (const An &lhs, const An &rhs) |
| |
| An | operator- (const An &lhs, const An &rhs) |
| |
| An | operator* (const An &lhs, float rhs) |
| |
| An | operator/ (const An &lhs, float rhs) |
| |
| An | operator* (float rhs, const An &lhs) |
| |
| std::string | string_from (const An &a) |
| |
| bool | operator< (const An &lhs, const An &rhs) |
| |
| bool | operator<= (const An &lhs, const An &rhs) |
| |
| bool | operator> (const An &lhs, const An &rhs) |
| |
| bool | operator>= (const An &lhs, const An &rhs) |
| |
| An | lerp_angle (const An &from, float v, const An &to) |
| |
| AA | rha (const n3 &axis, const An &angle) |
| |
| std::string | string_from (const AA &aa) |
| |
| std::string | string_from (const Ypr &ypr) |
| |
| bool | operator== (const Guid &lhs, const Guid &rhs) |
| |
| bool | operator!= (const Guid &lhs, const Guid &rhs) |
| |
| std::optional< Guid > | guid_from (const std::string &str) |
| | Parse a guid from a string.
|
| |
| std::string | string_from (const Guid &g) |
| | Convert a guid to a string representation, prefer fmt.
|
| |
| constexpr u64 | hash64 (const std::string_view str, u64 hash=0xcbf29ce484222325) |
| | fnv-1a hash.
|
| |
| | OP (==) OP(! |
| |
| std::string | string_from (const HshO &h) |
| |
| std::string | string_from (const m4 &m) |
| | Convert a matrix to a string representation, prefer fmt.
|
| |
| m4 | operator+ (const m4 &lhs, const m4 &rhs) |
| |
| m4 | operator- (const m4 &lhs, const m4 &rhs) |
| |
| m4 | operator* (const m4 &lhs, const m4 &rhs) |
| |
| v4 | operator* (const m4 &lhs, const v4 &rhs) |
| |
| constexpr float | cabs (float r) |
| |
| constexpr bool | is_zero (float r, float epsilon=kk::epsilon) |
| |
| constexpr bool | is_equal (float lhs, float rhs, float epsilon=kk::epsilon) |
| |
| int | floor_to_int (float v) |
| |
| int | ceil_to_int (float v) |
| |
| constexpr int | get_sign (float r) |
| | Calculates the sign as a positive or a negative int.
|
| |
| constexpr float | get_sign (bool b) |
| | Returns 1 if true or -1.
|
| |
| constexpr float | lerp_float (float f, float scale, float t) |
| |
| constexpr float | square (float r) |
| | Return r * r
|
| |
| constexpr float | min (float lhs, float rhs) |
| |
| constexpr float | max (float lhs, float rhs) |
| |
| constexpr float | clamp_zero (float value, float def=0.0f, float epsilon=kk::epsilon) |
| | If the value is close to zero, def is returned.
|
| |
| float | dot (const Q &lhs, const Q &rhs) |
| |
| std::string | string_from (const Q &v) |
| | Converts a quaternion to string, prefer fmt.
|
| |
| Q | operator* (const Q &lhs, const Q &rhs) |
| |
| Q | operator* (float scale, const Q &q) |
| |
| Q | operator* (const Q &q, float scale) |
| |
| template<typename T > |
| R< T > | make_range (T min, T max) |
| | Create a range from min to max (inclusive)
|
| |
| template<typename T > |
| R< T > | make_range (T max) |
| | Create a range from zero (0) to max (inclusive)
|
| |
| float | from_01f (float lower_bound, float upper_bound, float value) |
| |
| template<typename T > |
| T | from_01 (const R< T > &range, float value) |
| | Converts a value in 0-1 range to a custom range.
|
| |
| template<> |
| float | from_01 (const R< float > &range, float value) |
| |
| template<typename T > |
| float | to01 (const R< T > &range, T value) |
| | Converts a value in a range to the 0-1 range.
|
| |
| template<typename T > |
| T | get360_angular (const R< T > &range, float value) |
| |
| template<typename T , typename F > |
| T | remap_to (const R< F > &from, const R< T > &to, F value) |
| | Remaps a value from one range to another.
|
| |
| template<typename T > |
| bool | is_within (const R< T > &range, T value) |
| | Returns true if a value is withing a range.
|
| |
| template<typename T > |
| T | keep_within (const R< T > &range, T value) |
| | Returns a value that is kept within the range.
|
| |
| template<typename T > |
| T | wrap (const R< T > &range, T value) |
| | Returns a value that wraps around the range.
|
| |
| v2 | operator+ (const v2 &lhs, const v2 &rhs) |
| |
| v2 | operator- (const v2 &lhs, const v2 &rhs) |
| |
| v2 | operator* (const v2 &lhs, float rhs) |
| |
| v2 | operator* (float lhs, const v2 &rhs) |
| |
| v2 | operator* (const n2 &lhs, float rhs) |
| |
| v2 | operator* (float lhs, const n2 &rhs) |
| |
| v2 | operator/ (const v2 &lhs, float rhs) |
| |
| float | dot (const v2 &lhs, const v2 &rhs) |
| |
| v2 | lerp_vec2f (const v2 &from, float v, const v2 &to) |
| |
| std::string | string_from (const v2 &v) |
| | converts a 2d vector to a string, prefer fmt
|
| |
| std::string | string_from (const n2 &v) |
| | converts a 2d unit vector to a string, prefer fmt
|
| |
| v3 | operator+ (const v3 &lhs, const v3 &rhs) |
| |
| v3 | operator- (const v3 &lhs, const v3 &rhs) |
| |
| v3 | operator* (float lhs, const v3 &rhs) |
| |
| v3 | operator* (const v3 &lhs, float rhs) |
| |
| v3 | operator/ (const v3 &lhs, float rhs) |
| |
| v3 | operator/ (float lhs, const v3 &rhs) |
| |
| v3 | lerp_v3 (const v3 &f, float v, const v3 &t) |
| |
| std::string | string_from (const v3 &v) |
| | convert a 3d vector to string, prefer fmt
|
| |
| std::string | string_from (const n3 &v) |
| | converts a 3d unit vector to string, prefer fmt
|
| |
| constexpr v3 | min (const v3 &lhs, const v3 &rhs) |
| | component wise min value
|
| |
| constexpr v3 | max (const v3 &lhs, const v3 &rhs) |
| | component wise max value
|
| |
| std::string | string_from (const v4 &v) |
| | converts a 4d vector to a string, prefer fmt
|
| |