]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/sky/cloud.hxx
Work around a limitation of gc_calc_course_dist(). When the start and end
[simgear.git] / simgear / scene / sky / cloud.hxx
index 3da2b683dbe58e97603ee2895c61ca22b5e7b28d..76a3cb881df6245adaa59f229d18ced32bafe046 100644 (file)
 #include STL_STRING
 SG_USING_STD(string);
 
+// #include <iostream>
+// SG_USING_STD(cout);
+// SG_USING_STD(endl);
+
 
 /**
  * A class layer to model a single cloud layer
@@ -119,7 +123,10 @@ public:
      * set the cloud movement direction
      * @param dir the cloud movement direction
      */
-    inline void setDirection(float dir) { direction = dir; }
+    inline void setDirection(float dir) { 
+        // cout << "cloud dir = " << dir << endl;
+        direction = dir;
+    }
 
     /** get the cloud movement direction */
     inline float getDirection() { return direction; }
@@ -128,7 +135,10 @@ public:
      * set the cloud movement speed 
      * @param sp the cloud movement speed
      */
-    inline void setSpeed(float sp) { speed = sp; }
+    inline void setSpeed(float sp) {
+        // cout << "cloud speed = " << sp << endl;
+        speed = sp;
+    }
 
     /** get the cloud movement speed */
     inline float getSpeed() { return speed; }
@@ -184,8 +194,7 @@ private:
     // from winds, and to simulate the clouds being tied to ground
     // position, not view position
     // double xoff, yoff;
-    double last_lon, last_lat;
-
+    double last_lon, last_lat, last_course;
 };