Point3D dest( lon, lat, 0.0 );
double course = 0.0, dist = 0.0;
- if (dest != start) {
- calc_gc_course_dist( dest, start, &course, &dist );
- }
+ calc_gc_course_dist( dest, start, &course, &dist );
// cout << "course = " << course << ", dist = " << dist << endl;
-
// calculate cloud movement due to external forces
double ax = 0.0, ay = 0.0, bx = 0.0, by = 0.0;
"Error: base = " << base[0] << "," << base[1]);
}
- // cout << "base = " << base[0] << "," << base[1] << endl;
+ // cout << "base = " << base[0] << "," << base[1] << endl;
for (int i = 0; i < 4; i++)
{
#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
* 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; }
* 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; }