|
JPL Spatial
Sound spatialization and propagation library
|
Type traits and utilities for octahedron encoder. More...
Namespaces | |
| namespace | Internal |
Concepts | |
| concept | CPrecision |
| Constraint for valid precision types. | |
Typedefs | |
| using | Precision4bits = Internal::PrecisionType< uint8 > |
| Available precision types. | |
| using | Precision8bits = Internal::PrecisionType< uint16 > |
| using | Precision16bits = Internal::PrecisionType< uint32 > |
| using | Precision32bits = Internal::PrecisionType< uint64 > |
Functions | |
| JPL_INLINE constexpr double | MaxComponentError (size_t bitsPerAxis) noexcept |
| Run-time variant of 'cMaxComponentError'. | |
| JPL_INLINE constexpr double | MaxVectorError (size_t bitsPerAxis) noexcept |
| Run-time variant of 'cMaxVectorError'. | |
Variables | |
| template<size_t BitsPerAxis> | |
| constexpr double | cMaxComponentError = 4.0 / (static_cast<double>((1ULL << BitsPerAxis)) - 1.0) |
| template<size_t BitsPerAxis> | |
| constexpr double | cMaxVectorError = cMaxComponentError<BitsPerAxis> * std::numbers::sqrt3 |
Type traits and utilities for octahedron encoder.
Available precision types.
|
constexprnoexcept |
Run-time variant of 'cMaxComponentError'.
|
constexprnoexcept |
Run-time variant of 'cMaxVectorError'.
|
constexpr |
Maximum "per-component" error after Encode -> Decode for an octahedral map with B bits per axis. Valid for any vector on the unit sphere.
|
constexpr |