]> git.localhorst.tv Git - blank.git/blobdiff - src/geometry/const.hpp
split geometry lib
[blank.git] / src / geometry / const.hpp
diff --git a/src/geometry/const.hpp b/src/geometry/const.hpp
new file mode 100644 (file)
index 0000000..00d33e0
--- /dev/null
@@ -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