All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 19 of file QuantizedUnitVec.h.

Member Function Documentation

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

Definition at line 112 of file QuantizedUnitVec.h.

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

Definition at line 48 of file QuantizedUnitVec.h.

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

Definition at line 86 of file QuantizedUnitVec.h.

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