JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::VBAP::LUTQuery2D Class Reference

Interface to query LUT gains for a direction. More...

#include <JPLSpatial/Panning/VBAPLUT2D.h>

Public Member Functions

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
 

Public Attributes

const LUT2DLUT
 

Detailed Description

Interface to query LUT gains for a direction.

Constructor & Destructor Documentation

◆ LUTQuery2D()

JPL_INLINE JPL::VBAP::LUTQuery2D::LUTQuery2D ( const LUT2D lut)
inlineexplicitnoexcept

Member Function Documentation

◆ 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
direction: has to be normalized unit vector
outGains: must be of size at least number of target speakers the LUT was built for

◆ 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: has to be normalized unit vector
outGains: must be of size at least number of target speakers the LUT was built for

Note: this is needed unless we use atan2 path for scalar query.

Member Data Documentation

◆ LUT

const LUT2D& JPL::VBAP::LUTQuery2D::LUT

The documentation for this class was generated from the following file: