00001 #ifndef _WINC_WIND
00002 #define _WINC_WIND
00003
00004 #include <WXP/Vect.h>
00005
00006 namespace WXP {
00007 class Wind {
00008 public:
00009 float dir;
00010 float spd;
00011
00012 Wind( float d, float s );
00013 Wind();
00014 int init();
00015 int set( float d, float s );
00016 int set( Vect &v );
00017 int setVect( float u, float v );
00018 inline int setDir( float val ){ dir = val; return 1; };
00019 inline float getDir(){ return dir; };
00020 inline int setSpd( float val ){ spd = val; return 1; };
00021 inline float getSpd(){ return spd; };
00022 int print();
00023 int toVect( Vect &vect );
00024 Vect toVect();
00025 static Vect toVect( float dir, float spd );
00026 static Wind interp( Wind &w1, Wind &w2, float p1, float p2, float pr);
00027 };
00028 }
00029 #endif