nidas v1.2.3
|
Rotate a (U,V) 2D wind vector by an angle. More...
#include <WindRotator.h>
Public Member Functions | |
WindRotator () | |
double | getAngleDegrees () const |
void | setAngleDegrees (double val) |
void | rotate (float *up, float *vp) const |
Private Attributes | |
double | _angle |
double | _sinAngle |
double | _cosAngle |
Rotate a (U,V) 2D wind vector by an angle.
Typically used to correct winds for anemometer orientation, rotating U,V from instrument coordinates to geographic coordinates, where +U is wind to the east, and +V is to the north.
WindRotator::WindRotator | ( | ) |
double WindRotator::getAngleDegrees | ( | ) | const |
References _angle, and nidas::core::getSample().
Referenced by nidas::dynld::isff::Wind3D::getVazimuth().
References _cosAngle, _sinAngle, and nidas::core::getSample().
References _angle, _cosAngle, _sinAngle, and nidas::core::getSample().
Referenced by nidas::dynld::isff::Wind3D::setVazimuth().
|
private |
Referenced by getAngleDegrees(), and setAngleDegrees().
|
private |
Referenced by rotate(), and setAngleDegrees().
|
private |
Referenced by rotate(), and setAngleDegrees().