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
dirXX components of the direction vectors.
dirYY components of the direction vectors; ignored by this 2D query.
dirZZ components of the direction vectors.
outGainsMust 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
directionDirection to query.
outGainsMust have at least one entry per target speaker in the LUT.

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: