|
WXP C++ Library Version 6.74.9
|
This structure defines wind values (dir,spd) More...
#include "../include/Wind.h"
Public Member Functions | |
| Wind (float d, float s) | |
| Wind () | |
| int | init () |
| int | set (float d, float s) |
| int | set (Vect &v) |
| int | setDir (float val) |
| float | getDir () |
| int | setSpd (float val) |
| float | getSpd () |
| int | setVect (float u, float v) |
| int | toVect (Vect &vect) |
| Vect | toVect () |
| int | print () |
Static Public Member Functions | |
| static Vect | toVect (float dir, float spd) |
| static Wind | interp (Wind &w1, Wind &w2, float p1, float p2, float pr) |
Public Attributes | |
| float | dir |
| float | spd |
This structure defines wind values (dir,spd)
| Wind::Wind | ( | float | d, |
| float | s | ||
| ) |
| Wind::Wind | ( | ) |
Constructor
References init().
|
inline |
Gets the driection
|
inline |
Gets the speed
Referenced by WXP::VectPlot::draw().
| int Wind::init | ( | ) |
Wind interpolated between two pressure levels
| w1 | Wind at bottom of the layer |
| w2 | Wind at top of the layer |
| p1 | Pressure in mb at bottom of the layer |
| p2 | Pressure in mb at top of the layer |
| pr | Pressure in mb at level of interest |
References WXP::Const::MISS, set(), and toVect().
| int Wind::print | ( | ) |
Prints the values
| int Wind::set | ( | float | d, |
| float | s | ||
| ) |
Sets the values
| d | Direction |
| s | Speed |
Referenced by WXP::DatumPlot::draw(), WXP::NidsPlot::drawData(), WXP::VectPlot::drawStreamline(), WXP::VectPlot::drawVect(), interp(), and Wind().
| int Wind::set | ( | Vect & | v | ) |
|
inline |
Sets the direction
| val | Direction |
|
inline |
| int Wind::setVect | ( | float | u, |
| float | v | ||
| ) |
Sets the wind based on vector values
| u | U wind component |
| v | V wind component |
References init(), WXP::Const::MISS, WXP::Calc::windDir(), and WXP::Calc::windSpd().
Referenced by WXP::VectPlot::draw(), and set().
| Vect Wind::toVect | ( | ) |
|
static |
Converts to vector
| dir | Direction |
| spd | Speed |
References WXP::Const::MISS, WXP::Calc::windU(), and WXP::Calc::windV().
| int Wind::toVect | ( | Vect & | vect | ) |
Converts wind to vector
| vect | Vector output |
References WXP::Const::MISS, WXP::Calc::windU(), and WXP::Calc::windV().
Referenced by interp().