Interface to query LUT gains for a direction.
More...
#include <JPLSpatial/Panning/VBAPLUT2D.h>
|
| JPL_INLINE | LUTQuery2D (const LUT2D &lut) noexcept |
| |
| template<CVec3 Vec3Type> |
| JPL_INLINE void | GainsFor (const Vec3Type &direction, std::span< float > outGains) const |
| |
| JPL_INLINE void | GainsFor (const simd &dirX, const simd &dirY, const simd &dirZ, std::span< simd > outGains) const |
| |
Interface to query LUT gains for a direction.
◆ LUTQuery2D()
| JPL_INLINE JPL::VBAP::LUTQuery2D::LUTQuery2D |
( |
const LUT2D & | lut | ) |
|
|
inlineexplicitnoexcept |
◆ GainsFor() [1/2]
| JPL_INLINE void JPL::VBAP::LUTQuery2D::GainsFor |
( |
const simd & | dirX, |
|
|
const simd & | dirY, |
|
|
const simd & | dirZ, |
|
|
std::span< simd > | outGains ) const |
|
inline |
Function to query LUT gains for a direction.
- Parameters
-
| dirX | X components of the direction vectors. |
| dirY | Y components of the direction vectors; ignored by this 2D query. |
| dirZ | Z components of the direction vectors. |
| outGains | Must have at least one entry per target speaker in the LUT. |
◆ GainsFor() [2/2]
template<CVec3 Vec3Type>
| JPL_INLINE void JPL::VBAP::LUTQuery2D::GainsFor |
( |
const Vec3Type & | direction, |
|
|
std::span< float > | outGains ) const |
|
inline |
Function to query LUT gains for a direction.
- Parameters
-
| direction | Direction to query. |
| outGains | Must have at least one entry per target speaker in the LUT. |
Note: this is needed unless we use atan2 path for scalar query.
◆ LUT
| const LUT2D& JPL::VBAP::LUTQuery2D::LUT |
The documentation for this class was generated from the following file: