Add M_SQRT1_2F constant

This commit is contained in:
Jack Andersen 2017-07-26 19:15:22 -10:00
parent 13949b249e
commit bf13f1f49c
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
#undef M_SQRT1_2 #undef M_SQRT1_2
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
#define M_SQRT1_2F 0.70710678118654752440f /* 1/sqrt(2) */
#include <cmath> #include <cmath>
#include <algorithm> #include <algorithm>