]> git.mxchange.org Git - flightgear.git/commitdiff
Re-organized PI related constants.
authorcurt <curt>
Sun, 17 May 1998 16:56:47 +0000 (16:56 +0000)
committercurt <curt>
Sun, 17 May 1998 16:56:47 +0000 (16:56 +0000)
fg_constants.h

index af68146e31a496fc034e3ebea7caeb2c860c454a..be3c9acfae01166d8f4799aac50deac6638ebf2a 100644 (file)
 #endif
 
 
-/* Make sure PI is defined in its various forms */
+// Make sure PI is defined in its various forms
+
+// PI, only PI, and nothing but PI
 #ifdef M_PI
-#  define  FG_PI  M_PI
+#  define  FG_PI    M_PI
 #else
-#  define  FG_PI  3.14159265358979323846      /* pi */
+#  define  FG_PI    3.14159265358979323846
 #endif
 
+// 2 * PI
+#define FG_2PI      6.28318530717958647692
+
+// PI / 2
 #ifdef M_PI_2
 #  define  FG_PI_2  M_PI_2
 #else
-#  define  FG_PI_2  1.57079632679489661923    /* pi/2 */
+#  define  FG_PI_2  1.57079632679489661923
 #endif
 
-#define FG_2PI (FG_PI + FG_PI)                /* 2*pi */
+// PI / 4
+#define FG_PI_4     0.78539816339744830961
 
 
 /* Radius of Earth in kilometers at the equator.  Another source had
 
 
 /* $Log$
-/* Revision 1.4  1998/05/16 13:03:10  curt
-/* Defined field of view max/min limits.
+/* Revision 1.5  1998/05/17 16:56:47  curt
+/* Re-organized PI related constants.
 /*
+ * Revision 1.4  1998/05/16 13:03:10  curt
+ * Defined field of view max/min limits.
+ *
  * Revision 1.3  1998/04/08 23:35:32  curt
  * Tweaks to Gnu automake/autoconf system.
  *