[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/geodata/data
From: Adriaan de Groot <groot () kde ! org>
Date: 2008-03-30 23:44:46
Message-ID: 1206920686.021746.16474.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 792033 by adridg:
PI is a wonderful constant; it's just not defined in <cmath> everywhere.
M +5 -0 GeoDataPoint.h
--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataPoint.h #792032:792033
@@ -19,6 +19,11 @@
#include <cmath>
#include "Quaternion.h"
+/* M_PI is a #define that may or may not be handled in <cmath> */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846264338327950288419717
+#endif
+
const double TWOPI = 2 * M_PI;
class GeoDataPoint {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic