summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/pi-constant.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-18 12:14:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-19 07:17:22 +0200
commita9b804e18c811c781a099a70b960f5bbde61257d (patch)
tree069a7de35557f4d9ff141d795d287e4ac128f625 /opentrack-compat/pi-constant.hpp
parent9fc8ebfd8ab54b9fe1caaf60147dd43a573d67ef (diff)
some: replace hardcoded pi values with the same pi constant
We can't depend on M_PI existing after including cmath.
Diffstat (limited to 'opentrack-compat/pi-constant.hpp')
-rw-r--r--opentrack-compat/pi-constant.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentrack-compat/pi-constant.hpp b/opentrack-compat/pi-constant.hpp
new file mode 100644
index 00000000..52b98a7f
--- /dev/null
+++ b/opentrack-compat/pi-constant.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+#define OPENTRACK_PI 3.14159265358979323846