X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry%2Fconst.hpp;fp=src%2Fgeometry%2Fconst.hpp;h=00d33e08df508a61fb86452d2b85687c41908127;hb=4fbf5a3c1b0e530706023f5fc4be2f68d30ea645;hp=0000000000000000000000000000000000000000;hpb=0d580658b896dfec07466c31ae4847455724ee95;p=blank.git diff --git a/src/geometry/const.hpp b/src/geometry/const.hpp new file mode 100644 index 0000000..00d33e0 --- /dev/null +++ b/src/geometry/const.hpp @@ -0,0 +1,18 @@ +#ifndef BLANK_GEOMETRY_CONST_HPP_ +#define BLANK_GEOMETRY_CONST_HPP_ + + +namespace blank { + +constexpr float PI = 3.141592653589793238462643383279502884; +constexpr float PI_0p25 = PI * 0.25f; +constexpr float PI_0p5 = PI * 0.5f; +constexpr float PI_1p5 = PI * 1.5f; +constexpr float PI_2p0 = PI * 2.0f; + +constexpr float PI_inv = 1.0f / PI; +constexpr float PI_0p5_inv = 1.0f / PI_0p5; + +} + +#endif