![]() |
OpenDAFF C++ API
v1.7
Directional Audio File Format
|
#include <DAFFSCTransform.h>
Public Member Functions | |
DAFFSCTransform () | |
Constructor. More... | |
DAFFSCTransform (const DAFFOrientationYPR &orient) | |
Constructor with initial orientation. More... | |
void | getOrientation (DAFFOrientationYPR &orient) const |
Return the OSC->DSC orientation (yaw-pitch-roll) More... | |
void | setOrientation (const DAFFOrientationYPR &orient) |
Sets the OSC->DSC orientation (yaw-pitch-roll) More... | |
void | transformOSC2DSC (float azimuth_in, float elevation_in, float &alpha_out, float &beta_out) const |
Transform coordinates from OSC -> DSC (including coordinate system rotation) More... | |
void | transformDSC2OSC (float alpha_in, float beta_in, float &azimuth_out, float &elevation_out) const |
Transform coordinates from DSC -> OSC (including coordinate system rotation) More... | |
void | transformOSC2DSC (double azimuth_in, double elevation_in, double &alpha_out, double &beta_out) const |
Transform coordinates from OSC -> DSC (including coordinate system rotation) More... | |
void | transformDSC2OSC (double alpha_in, double beta_in, double &azimuth_out, double &elevation_out) const |
Transform coordinates from DSC -> OSC (including coordinate system rotation) More... | |
This library-internal class realizes transformations of spherical coordinates. It implements the rather complex rotation yaw-pitch-roll convention expressed in spherical coordinates.
Definition at line 23 of file DAFFSCTransform.h.
|
inline |
Constructor.
Definition at line 27 of file DAFFSCTransform.h.
DAFFSCTransform::DAFFSCTransform | ( | const DAFFOrientationYPR & | orient | ) |
Constructor with initial orientation.
Definition at line 8 of file DAFFSCTransform.cpp.
void DAFFSCTransform::getOrientation | ( | DAFFOrientationYPR & | orient | ) | const |
Return the OSC->DSC orientation (yaw-pitch-roll)
Definition at line 13 of file DAFFSCTransform.cpp.
void DAFFSCTransform::setOrientation | ( | const DAFFOrientationYPR & | orient | ) |
Sets the OSC->DSC orientation (yaw-pitch-roll)
Definition at line 18 of file DAFFSCTransform.cpp.
void DAFFSCTransform::transformDSC2OSC | ( | float | alpha_in, |
float | beta_in, | ||
float & | azimuth_out, | ||
float & | elevation_out | ||
) | const |
Transform coordinates from DSC -> OSC (including coordinate system rotation)
Definition at line 85 of file DAFFSCTransform.cpp.
void DAFFSCTransform::transformDSC2OSC | ( | double | alpha_in, |
double | beta_in, | ||
double & | azimuth_out, | ||
double & | elevation_out | ||
) | const |
Transform coordinates from DSC -> OSC (including coordinate system rotation)
Definition at line 93 of file DAFFSCTransform.cpp.
void DAFFSCTransform::transformOSC2DSC | ( | float | azimuth_in, |
float | elevation_in, | ||
float & | alpha_out, | ||
float & | beta_out | ||
) | const |
Transform coordinates from OSC -> DSC (including coordinate system rotation)
Definition at line 55 of file DAFFSCTransform.cpp.
void DAFFSCTransform::transformOSC2DSC | ( | double | azimuth_in, |
double | elevation_in, | ||
double & | alpha_out, | ||
double & | beta_out | ||
) | const |
Transform coordinates from OSC -> DSC (including coordinate system rotation)
Definition at line 63 of file DAFFSCTransform.cpp.