|
HoaLibrary
2.0
High Order Ambisonics Library
|
The ambisonic rotate. More...
#include <Rotate.h>
Public Member Functions | |
| Rotate (unsigned int order) | |
| The Rotate constructor. More... | |
| ~Rotate () | |
| The Rotate destructor. More... | |
| void | setRotations (const double roll, const double pitch, const double yaw) |
| This method sets the three rotation values at the same time (xyz axis). More... | |
| void | setRoll (const double value) |
| This method sets the roll value (rotation on the x-axis). More... | |
| void | setPitch (const double value) |
| This method sets the pitch value (rotation on the y-axis). More... | |
| void | setYaw (const double value) |
| This method sets the yaw value (rotation on the z-axis). More... | |
| double | getRoll () const |
| Get the roll value (rotation on the x-axis). More... | |
| double | getPitch () const |
| Get the pitch value (rotation on the y-axis). More... | |
| double | getYaw () const |
| Get the yaw value (rotation on the z-axis). More... | |
| void | process (const float *inputs, float *outputs) |
| This method performs the rotation with single precision. More... | |
| void | process (const double *inputs, double *outputs) |
| This method performs the rotation with double precision. More... | |
Public Member Functions inherited from Hoa3D::Ambisonic | |
| Ambisonic (unsigned int order) | |
| The ambisonic constructor. More... | |
| ~Ambisonic () | |
| The ambisonic destructor. More... | |
| unsigned int | getOrder () const |
| Retrieve the decomposition order. More... | |
| unsigned int | getNumberOfHarmonics () const |
| Retrieve the number of harmonics. More... | |
| int | getHarmonicArgument (const unsigned int index) const |
| Retrieve the argument of an harmonic. More... | |
| unsigned int | getHarmonicBand (const unsigned int index) const |
| Retrieve the band of an harmonic. More... | |
| std::string | getHarmonicsName (const unsigned int index) const |
| Retrieve a name for an harmonic. More... | |
| Hoa3D::Rotate::Rotate | ( | unsigned int | order | ) |
The Rotate constructor.
The Rotate constructor allocates and initialize the member values to computes spherical harmonics rotation depending on a decomposition order. The order must be at least 1.
| order | The order. |
Definition at line 11 of file Rotate.cpp.
| Hoa3D::Rotate::~Rotate | ( | ) |
The Rotate destructor.
The Rotate destructor free the memory.
Definition at line 97 of file Rotate.cpp.
|
inline |
|
inline |
|
inline |
| void Hoa3D::Rotate::process | ( | const float * | inputs, |
| float * | outputs | ||
| ) |
This method performs the rotation with single precision.
You should use this method for not-in-place processing and performs the rotation sample by sample. (warning : doesn't work with in-place vectors); The inputs array and outputs array contains the spherical harmonics samples and the minimum size must be the number of harmonics.
| inputs | The inputs array. |
| outputs | The outputs array. |
Definition at line 48 of file Rotate.cpp.
| void Hoa3D::Rotate::process | ( | const double * | inputs, |
| double * | outputs | ||
| ) |
This method performs the rotation with double precision.
You should use this method for not-in-place processing and performs the rotation sample by sample. (warning : doesn't work with in-place vectors); The inputs array and outputs array contains the spherical harmonics samples and the minimum size must be the number of harmonics.
| inputs | The inputs array. |
| outputs | The outputs array. |
Definition at line 75 of file Rotate.cpp.
| void Hoa3D::Rotate::setPitch | ( | const double | value | ) |
This method sets the pitch value (rotation on the y-axis).
The pitch is equivalent to a rotation on the y-axis (also named tumble).
| value | The pitch value between 0 and 2π. |
Definition at line 34 of file Rotate.cpp.
| void Hoa3D::Rotate::setRoll | ( | const double | value | ) |
This method sets the roll value (rotation on the x-axis).
The roll is equivalent to a rotation on the x-axis (also named tilt).
| value | The roll value between 0 and 2π. |
Definition at line 26 of file Rotate.cpp.
| void Hoa3D::Rotate::setRotations | ( | const double | roll, |
| const double | pitch, | ||
| const double | yaw | ||
| ) |
This method sets the three rotation values at the same time (xyz axis).
This method sets the three rotation values at the same time (xyz axis).
| roll | The roll value is equivalent to a rotation on the x-axis (also named tilt), between 0 and 2π. |
| pitch | The pitch value is equivalent to a rotation on the y-axis (also named tumble), between 0 and 2π. |
| yaw | The yaw value is equivalent to a rotation on the z-axis (also named rotation), between 0 and 2π. |
Definition at line 19 of file Rotate.cpp.
| void Hoa3D::Rotate::setYaw | ( | const double | value | ) |
This method sets the yaw value (rotation on the z-axis).
The yaw is equivalent to a rotation on the z-axis (also named rotation).
| value | The yaw value between 0 and 2π. |
Definition at line 40 of file Rotate.cpp.
1.8.5