GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::OctahedronToolBox Class Reference

#include <normal_compression_utils.h>

Public Member Functions

 OctahedronToolBox ()
bool SetQuantizationBits (int32_t q)
bool IsInitialized () const
void CanonicalizeOctahedralCoords (int32_t s, int32_t t, int32_t *out_s, int32_t *out_t) const
void IntegerVectorToQuantizedOctahedralCoords (const int32_t *int_vec, int32_t *out_s, int32_t *out_t) const
template<class T>
void FloatVectorToQuantizedOctahedralCoords (const T *vector, int32_t *out_s, int32_t *out_t) const
template<class T>
void CanonicalizeIntegerVector (T *vec) const
void QuantizedOctahedralCoordsToUnitVector (int32_t in_s, int32_t in_t, float *out_vector) const
bool IsInDiamond (const int32_t &s, const int32_t &t) const
void InvertDiamond (int32_t *s, int32_t *t) const
void InvertDirection (int32_t *s, int32_t *t) const
int32_t ModMax (int32_t x) const
int32_t MakePositive (int32_t x) const
int32_t quantization_bits () const
int32_t max_quantized_value () const
int32_t max_value () const
int32_t center_value () const

Constructor & Destructor Documentation

◆ OctahedronToolBox()

draco::OctahedronToolBox::OctahedronToolBox ( )
inline

Member Function Documentation

◆ CanonicalizeIntegerVector()

template<class T>
void draco::OctahedronToolBox::CanonicalizeIntegerVector ( T * vec) const
inline

◆ CanonicalizeOctahedralCoords()

void draco::OctahedronToolBox::CanonicalizeOctahedralCoords ( int32_t s,
int32_t t,
int32_t * out_s,
int32_t * out_t ) const
inline
Here is the caller graph for this function:

◆ center_value()

int32_t draco::OctahedronToolBox::center_value ( ) const
inline
Here is the caller graph for this function:

◆ FloatVectorToQuantizedOctahedralCoords()

template<class T>
void draco::OctahedronToolBox::FloatVectorToQuantizedOctahedralCoords ( const T * vector,
int32_t * out_s,
int32_t * out_t ) const
inline
Here is the caller graph for this function:

◆ IntegerVectorToQuantizedOctahedralCoords()

void draco::OctahedronToolBox::IntegerVectorToQuantizedOctahedralCoords ( const int32_t * int_vec,
int32_t * out_s,
int32_t * out_t ) const
inline
Here is the caller graph for this function:

◆ InvertDiamond()

void draco::OctahedronToolBox::InvertDiamond ( int32_t * s,
int32_t * t ) const
inline
Here is the caller graph for this function:

◆ InvertDirection()

void draco::OctahedronToolBox::InvertDirection ( int32_t * s,
int32_t * t ) const
inline

◆ IsInDiamond()

bool draco::OctahedronToolBox::IsInDiamond ( const int32_t & s,
const int32_t & t ) const
inline

◆ IsInitialized()

bool draco::OctahedronToolBox::IsInitialized ( ) const
inline

◆ MakePositive()

int32_t draco::OctahedronToolBox::MakePositive ( int32_t x) const
inline

◆ max_quantized_value()

int32_t draco::OctahedronToolBox::max_quantized_value ( ) const
inline
Here is the caller graph for this function:

◆ max_value()

int32_t draco::OctahedronToolBox::max_value ( ) const
inline

◆ ModMax()

int32_t draco::OctahedronToolBox::ModMax ( int32_t x) const
inline

◆ quantization_bits()

int32_t draco::OctahedronToolBox::quantization_bits ( ) const
inline

◆ QuantizedOctahedralCoordsToUnitVector()

void draco::OctahedronToolBox::QuantizedOctahedralCoordsToUnitVector ( int32_t in_s,
int32_t in_t,
float * out_vector ) const
inline
Here is the caller graph for this function:

◆ SetQuantizationBits()

bool draco::OctahedronToolBox::SetQuantizationBits ( int32_t q)
inline
Here is the caller graph for this function:

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