HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::math::QuantizedUnitVec Class Reference

Unit vector occupying only 16 bits. More...

#include <QuantizedUnitVec.h>

Static Public Member Functions

template<typename T >
static uint16_t pack (const Vec3< T > &vec)
 
static Vec3s unpack (const uint16_t data)
 
static void flipSignBits (uint16_t &)
 

Detailed Description

Unit vector occupying only 16 bits.

Stores two quantized components. Based on the "Higher Accuracy Quantized Normals" article from GameDev.Net LLC, 2000

Definition at line 46 of file QuantizedUnitVec.h.

Member Function Documentation

void openvdb::OPENVDB_VERSION_NAME::math::QuantizedUnitVec::flipSignBits ( uint16_t &  v)
inlinestatic

Definition at line 139 of file QuantizedUnitVec.h.

template<typename T >
uint16_t openvdb::OPENVDB_VERSION_NAME::math::QuantizedUnitVec::pack ( const Vec3< T > &  vec)
inlinestatic

Definition at line 75 of file QuantizedUnitVec.h.

Vec3s openvdb::OPENVDB_VERSION_NAME::math::QuantizedUnitVec::unpack ( const uint16_t  data)
inlinestatic

Definition at line 113 of file QuantizedUnitVec.h.


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