|
Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
Functions | |
| float | sin (float x) |
| float | cos (float x) |
| float | tan (float x) |
| float | asin (float x) |
| float | acos (float x) |
| float | atan (float x) |
| float | atan2 (float y, float x) |
| float | sinh (float x) |
| float | cosh (float x) |
| float | tanh (float x) |
| float | exp (float x) |
| float | log (float x) |
| float | log2 (float x) |
| float | log10 (float x) |
| float | pow (float base, float exp) |
| float | sqrt (float x) |
| float | cbrt (float x) |
| float | floor (float x) |
| float | ceil (float x) |
| float | round (float x) |
| float | trunc (float x) |
| float | abs (float x) |
| int | abs (int x) |
| float | deg2rad (float degrees) |
| float | rad2deg (float radians) |
| bool | is_zero_approx (float x) |
| bool | is_equal_approx (float a, float b) |
| float | random (float min_val, float max_val) |
| int | random (int min_val, int max_val) |
| float | snap (float value, float step) |
| template<typename T > | |
| T | min (T a, T b) |
| template<typename T > | |
| T | max (T a, T b) |
| template<typename T > | |
| T | clamp (T value, T min_val, T max_val) |
| template<typename T > | |
| T | sign (T x) |
| template<typename T > | |
| T | lerp (T a, T b, float t) |
| template<typename T > | |
| T | smoothstep (T edge0, T edge1, T x) |
| template<typename T > | |
| T | move_toward (T current, T target, T delta) |
Variables | |
| constexpr float | PI = 3.14159265358979323846f |
| constexpr float | TAU = 6.28318530717958647692f |
| constexpr float | E = 2.71828182845904523536f |
| constexpr float | DEG2RAD = PI / 180.0f |
| constexpr float | RAD2DEG = 180.0f / PI |
| constexpr float | EPSILON = 1e-6f |
| constexpr float | INF = __builtin_huge_valf() |
| float math::abs | ( | float | x | ) |
| int math::abs | ( | int | x | ) |
| float math::acos | ( | float | x | ) |
| float math::asin | ( | float | x | ) |
| float math::atan | ( | float | x | ) |
| float math::atan2 | ( | float | y, |
| float | x | ||
| ) |
| float math::cbrt | ( | float | x | ) |
| float math::ceil | ( | float | x | ) |
|
inline |
| float math::cos | ( | float | x | ) |
| float math::cosh | ( | float | x | ) |
| float math::deg2rad | ( | float | degrees | ) |
| float math::exp | ( | float | x | ) |
| float math::floor | ( | float | x | ) |
| bool math::is_equal_approx | ( | float | a, |
| float | b | ||
| ) |
| bool math::is_zero_approx | ( | float | x | ) |
|
inline |
| float math::log | ( | float | x | ) |
| float math::log10 | ( | float | x | ) |
| float math::log2 | ( | float | x | ) |
|
inline |
|
inline |
|
inline |
| float math::pow | ( | float | base, |
| float | exp | ||
| ) |
| float math::rad2deg | ( | float | radians | ) |
| float math::random | ( | float | min_val, |
| float | max_val | ||
| ) |
| int math::random | ( | int | min_val, |
| int | max_val | ||
| ) |
| float math::round | ( | float | x | ) |
|
inline |
| float math::sin | ( | float | x | ) |
| float math::sinh | ( | float | x | ) |
|
inline |
| float math::snap | ( | float | value, |
| float | step | ||
| ) |
| float math::sqrt | ( | float | x | ) |
| float math::tan | ( | float | x | ) |
| float math::tanh | ( | float | x | ) |
| float math::trunc | ( | float | x | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |