From a9b804e18c811c781a099a70b960f5bbde61257d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Jul 2016 12:14:51 +0200 Subject: some: replace hardcoded pi values with the same pi constant We can't depend on M_PI existing after including cmath. --- opentrack/simple-mat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opentrack') diff --git a/opentrack/simple-mat.cpp b/opentrack/simple-mat.cpp index 8173f888..b9273fc0 100644 --- a/opentrack/simple-mat.cpp +++ b/opentrack/simple-mat.cpp @@ -1,8 +1,9 @@ #include "simple-mat.hpp" +#include "opentrack-compat/pi-constant.hpp" namespace euler { -static constexpr double pi = 3.141592653; +static constexpr double pi = OPENTRACK_PI; euler_t rmat_to_euler(const dmat<3, 3>& R) { -- cgit v1.2.3