Ver código fonte

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

undefined
Sam Hocevar 10 anos atrás
pai
commit
d9b37a0c8d
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      src/lol/math/functions.h

+ 3
- 0
src/lol/math/functions.h Ver arquivo

@@ -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); }



Carregando…
Cancelar
Salvar