Quellcode durchsuchen

math: add lol::cbrt as a direct alias to std::cbrt.

undefined
Sam Hocevar vor 9 Jahren
Ursprung
Commit
d9b37a0c8d
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      src/lol/math/functions.h

+ 3
- 0
src/lol/math/functions.h Datei anzeigen

@@ -35,6 +35,9 @@ namespace lol
static inline double sqrt(double const &x) { return std::sqrt(x); }
static inline float sqrt(float const &x) { return std::sqrt(x); }

static inline double cbrt(double const &x) { return std::cbrt(x); }
static inline float cbrt(float const &x) { return std::cbrt(x); }

static inline double exp(double const &x) { return std::exp(x); }
static inline float exp(float const &x) { return std::exp(x); }



Laden…
Abbrechen
Speichern