WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Wind.h
1#ifndef _WINC_WIND
2#define _WINC_WIND
3
4#include <WXP/Vect.h>
5
6namespace WXP {
7 class Wind {
8 public:
9 float dir;
10 float spd;
11
12 Wind( float d, float s );
13 Wind();
14 int init();
15 int set( float d, float s );
16 int set( Vect &v );
18 inline int setDir( float val ){ dir = val; return 1; };
20 inline float getDir(){ return dir; };
22 inline int setSpd( float val ){ spd = val; return 1; };
24 inline float getSpd(){ return spd; };
25 int setVect( float u, float v );
26 int toVect( Vect &vect );
27 Vect toVect();
28 int print();
29 static Vect toVect( float dir, float spd );
30 static Wind interp( Wind &w1, Wind &w2, float p1, float p2, float pr);
31 };
32}
33#endif
This structure defines a vector quantity (x,y)
Definition: Vect.h:5
This structure defines wind values (dir,spd)
Definition: Wind.h:7
int print()
Definition: Wind.cc:104
int setSpd(float val)
Definition: Wind.h:22
float getDir()
Definition: Wind.h:20
Wind()
Definition: Wind.cc:21
int setDir(float val)
Definition: Wind.h:18
int set(float d, float s)
Definition: Wind.cc:48
Vect toVect()
Definition: Wind.cc:94
int init()
Definition: Wind.cc:28
float getSpd()
Definition: Wind.h:24
static Wind interp(Wind &w1, Wind &w2, float p1, float p2, float pr)
Definition: Wind.cc:134
int setVect(float u, float v)
Definition: Wind.cc:68
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4