BitStream
bitstream::smallest_three< T, BitsPerElement > Class Template Reference

Class for quantizing a user-specified quaternion into fewer bits using the smallest-three algorithm. More...

#include <smallest_three.h>

Static Public Member Functions

static quantized_quaternion quantize (const T &quaternion) noexcept
 
static T dequantize (const quantized_quaternion &data) noexcept
 

Detailed Description

template<typename T, size_t BitsPerElement = 12>
class bitstream::smallest_three< T, BitsPerElement >

Class for quantizing a user-specified quaternion into fewer bits using the smallest-three algorithm.

Template Parameters
TThe quaternion-type to quantize

Member Function Documentation

◆ dequantize()

template<typename T , size_t BitsPerElement = 12>
static T bitstream::smallest_three< T, BitsPerElement >::dequantize ( const quantized_quaternion data)
inlinestaticnoexcept

◆ quantize()

template<typename T , size_t BitsPerElement = 12>
static quantized_quaternion bitstream::smallest_three< T, BitsPerElement >::quantize ( const T &  quaternion)
inlinestaticnoexcept

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