suggestion
19.10.1999 Christian Mayer change to use PLIB's sg instead of Point[2/3]D
and lots of wee code cleaning
+21.12.1999 Christian Mayer Added a fix for compatibility to gcc 2.8 which
+ suggested by Oliver Delise
*****************************************************************************/
/****************************************************************************/
/****************************************************************************/
/* INCLUDES */
/****************************************************************************/
-#include "sg.h"
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <simgear/compiler.h>
+
+#ifdef HAVE_WINDOWS_H
+# include <windows.h>
+#endif
+
+#include <plib/sg.h>
#include "FGWeatherDefs.h"
class FGTurbulenceItem;
FGTurbulenceItem operator-(const FGTurbulenceItem& arg);
+#if ( __GNU_C__ == 2 && __GNU_MAJOR__ < 9 )
+# define const_sgVec3 const sgVec3
+#else
+# define const_sgVec3 const sgVec3&
+#endif
+
/****************************************************************************/
/* CLASS DECLARATION */
/****************************************************************************/
protected:
public:
- FGTurbulenceItem(const sgVec3& v) { sgCopyVec3(value, v);}
+ FGTurbulenceItem(const_sgVec3 v) { sgCopyVec3(value, v);}
FGTurbulenceItem() { sgZeroVec3(value); }
void getValue(sgVec3 ret) const { sgCopyVec3(ret, value); };
WeatherPrecision y(void) const { return value[1]; };
WeatherPrecision z(void) const { return value[2]; };
+ void x(const WeatherPrecision x) { value[0] = x; };
+ void y(const WeatherPrecision y) { value[1] = y; };
+ void z(const WeatherPrecision z) { value[2] = z; };
+
FGTurbulenceItem& operator*= (const WeatherPrecision arg);
FGTurbulenceItem& operator+= (const FGTurbulenceItem& arg);
FGTurbulenceItem& operator-= (const FGTurbulenceItem& arg);