]> git.mxchange.org Git - flightgear.git/commitdiff
Changed name of EQUATORIAL_RADIUS_KM and RESQ_KM to "M" since they were
authorcurt <curt>
Wed, 8 Jul 1998 14:36:29 +0000 (14:36 +0000)
committercurt <curt>
Wed, 8 Jul 1998 14:36:29 +0000 (14:36 +0000)
in meters anyways.

Unified fgCartesianPoint3d and fgPolarPoint3d in a single struct called
fgPoint3d.

fg_constants.h
fg_types.h

index f75af875372473d3e63798794e025c4e5caaee7c..e934b44f519f38e1a65fc1cbc91ba864dbb7a1fa 100644 (file)
 
 /* Value of earth radius from [8] */
 #define EQUATORIAL_RADIUS_FT 20925650.    /* ft */
-#define EQUATORIAL_RADIUS_KM 6378138.12   /* meter */
+#define EQUATORIAL_RADIUS_M   6378138.12  /* meter */
 /* Radius squared */
 #define RESQ_FT 437882827922500.          /* ft */
-#define RESQ_KM 40680645877797.1344       /* meter */
+#define RESQ_M   40680645877797.1344      /* meter */
 
 /* Value of earth flattening parameter from ref [8] 
  *
 
 
 /* $Log$
-/* Revision 1.6  1998/07/03 14:36:11  curt
-/* Added conversion constants to fg_constants.h to assist with converting
-/*   between various world units and coordinate systems.
-/* Added gl vendor/renderer/version info to general structure.  Initialized
-/*   in fg_init.cxx
+/* Revision 1.7  1998/07/08 14:36:29  curt
+/* Changed name of EQUATORIAL_RADIUS_KM and RESQ_KM to "M" since they were
+/* in meters anyways.
 /*
+/* Unified fgCartesianPoint3d and fgPolarPoint3d in a single struct called
+/* fgPoint3d.
+/*
+ * Revision 1.6  1998/07/03 14:36:11  curt
+ * Added conversion constants to fg_constants.h to assist with converting
+ *   between various world units and coordinate systems.
+ * Added gl vendor/renderer/version info to general structure.  Initialized
+ *   in fg_init.cxx
+ *
  * Revision 1.5  1998/05/17 16:56:47  curt
  * Re-organized PI related constants.
  *
index f57746a1384c6c7df0c57aacf8d5d61bac1cb64a..6b389a037d4bfbf35821b63cd9558c92eb2d5aa0 100644 (file)
 
 /* A simple 3d cartesian point */
 typedef struct {
-    double x, y, z;
-} fgCartesianPoint3d;
+    union {
+       double x;
+       double lon;
+    };
+    union {
+       double y;
+       double lat;
+    };
+    union {
+       double z;
+       double radius;
+    };
+} fgPoint3d;
 
 
 /* A simple 3d polar point */
 typedef struct {
     double lon, lat, radius;
-} fgPolarPoint3d;
+} fgPolarPoint3dOld;
 
 
 /* A simple geodetic point */
@@ -50,9 +61,16 @@ typedef struct {
 
 
 /* $Log$
-/* Revision 1.3  1998/05/02 01:48:39  curt
-/* typedef-ified fgCartesianPoint3d
+/* Revision 1.4  1998/07/08 14:36:29  curt
+/* Changed name of EQUATORIAL_RADIUS_KM and RESQ_KM to "M" since they were
+/* in meters anyways.
 /*
+/* Unified fgCartesianPoint3d and fgPolarPoint3d in a single struct called
+/* fgPoint3d.
+/*
+ * Revision 1.3  1998/05/02 01:48:39  curt
+ * typedef-ified fgCartesianPoint3d
+ *
  * Revision 1.2  1998/04/08 23:35:33  curt
  * Tweaks to Gnu automake/autoconf system.
  *