ソースを参照

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

undefined
Sam Hocevar 10年前
コミット
d9b37a0c8d
1個のファイルの変更3行の追加0行の削除
  1. +3
    -0
      src/lol/math/functions.h

+ 3
- 0
src/lol/math/functions.h ファイルの表示

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



読み込み中…
キャンセル
保存