OpenVDB  9.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
BBox< Vec3T, true > Struct Template Reference

Partial template specialization for floating point coordinate types. More...

#include <nanovdb/NanoVDB.h>

Inherits BaseBBox< Vec3T >.

Public Types

using Vec3Type = Vec3T
 
using ValueType = typename Vec3T::ValueType
 
using BaseT = BaseBBox< Vec3T >
 

Public Member Functions

 BBox ()
 
 BBox (const Vec3T &min, const Vec3T &max)
 
 BBox (const Coord &min, const Coord &max)
 
 BBox (const BaseBBox< Coord > &bbox)
 
bool empty () const
 
Vec3T dim () const
 
bool isInside (const Vec3T &p) const
 
bool operator== (const BaseBBox &rhs) const
 
bool operator!= (const BaseBBox &rhs) const
 
const Vec3T & operator[] (int i) const
 
Vec3T & operator[] (int i)
 
Vec3T & min ()
 
const Vec3T & min () const
 
Vec3T & max ()
 
const Vec3T & max () const
 
Coordtranslate (const Vec3T &xyz)
 
BaseBBoxexpand (const Vec3T &xyz)
 
bool isInside (const Vec3T &xyz)
 

Public Attributes

Vec3T mCoord [2]
 

Detailed Description

template<typename Vec3T>
struct nanovdb::BBox< Vec3T, true >

Partial template specialization for floating point coordinate types.

Note
Min is inclusive and max is exclusive. If min = max the dimension of the bounding box is zero and therefore it is also empty.

Member Typedef Documentation

using BaseT = BaseBBox<Vec3T>
using ValueType = typename Vec3T::ValueType
using Vec3Type = Vec3T

Constructor & Destructor Documentation

BBox ( )
inline
BBox ( const Vec3T &  min,
const Vec3T &  max 
)
inline
BBox ( const Coord min,
const Coord max 
)
inline
BBox ( const BaseBBox< Coord > &  bbox)
inline

Member Function Documentation

Vec3T dim ( ) const
inline
bool empty ( ) const
inline
BaseBBox& expand ( const Vec3T &  xyz)
inlineinherited
bool isInside ( const Vec3T &  xyz)
inlineinherited
bool isInside ( const Vec3T &  p) const
inline
Vec3T& max ( )
inlineinherited
const Vec3T& max ( ) const
inlineinherited
Vec3T& min ( )
inlineinherited
const Vec3T& min ( ) const
inlineinherited
bool operator!= ( const BaseBBox< Vec3T > &  rhs) const
inlineinherited
bool operator== ( const BaseBBox< Vec3T > &  rhs) const
inlineinherited
const Vec3T& operator[] ( int  i) const
inlineinherited
Vec3T& operator[] ( int  i)
inlineinherited
Coord& translate ( const Vec3T &  xyz)
inlineinherited

Member Data Documentation

Vec3T mCoord[2]
inherited