OpenVDB 13.1.0
Loading...
Searching...
No Matches
BaseBBox< Vec3T > Struct Template Reference

#include <nanovdb/math/Math.h>

Public Member Functions

__hostdev__ bool operator== (const BaseBBox &rhs) const
__hostdev__ bool operator!= (const BaseBBox &rhs) const
__hostdev__ const Vec3T & operator[] (int i) const
__hostdev__ Vec3T & operator[] (int i)
__hostdev__ Vec3T & min ()
__hostdev__ Vec3T & max ()
__hostdev__ const Vec3T & min () const
__hostdev__ const Vec3T & max () const
__hostdev__ BaseBBoxtranslate (const Vec3T &xyz)
__hostdev__ BaseBBoxexpand (const Vec3T &xyz)
 Expand this bounding box to enclose point xyz.
__hostdev__ BaseBBoxexpand (const BaseBBox &bbox)
 Expand this bounding box to enclose the given bounding box.
__hostdev__ BaseBBoxintersect (const BaseBBox &bbox)
 Intersect this bounding box with the given bounding box.
__hostdev__ bool isInside (const Vec3T &xyz)

Public Attributes

Vec3T mCoord [2]

Protected Member Functions

__hostdev__ BaseBBox ()
__hostdev__ BaseBBox (const Vec3T &min, const Vec3T &max)

Constructor & Destructor Documentation

◆ BaseBBox() [1/2]

template<typename Vec3T>
__hostdev__ BaseBBox ( )
inlineprotected

◆ BaseBBox() [2/2]

template<typename Vec3T>
__hostdev__ BaseBBox ( const Vec3T & min,
const Vec3T & max )
inlineprotected

Member Function Documentation

◆ expand() [1/2]

template<typename Vec3T>
__hostdev__ BaseBBox & expand ( const BaseBBox< Vec3T > & bbox)
inline

Expand this bounding box to enclose the given bounding box.

◆ expand() [2/2]

template<typename Vec3T>
__hostdev__ BaseBBox & expand ( const Vec3T & xyz)
inline

Expand this bounding box to enclose point xyz.

◆ intersect()

template<typename Vec3T>
__hostdev__ BaseBBox & intersect ( const BaseBBox< Vec3T > & bbox)
inline

Intersect this bounding box with the given bounding box.

◆ isInside()

template<typename Vec3T>
__hostdev__ bool isInside ( const Vec3T & xyz)
inline

◆ max() [1/2]

template<typename Vec3T>
__hostdev__ Vec3T & max ( )
inline

◆ max() [2/2]

template<typename Vec3T>
__hostdev__ const Vec3T & max ( ) const
inline

◆ min() [1/2]

template<typename Vec3T>
__hostdev__ Vec3T & min ( )
inline

◆ min() [2/2]

template<typename Vec3T>
__hostdev__ const Vec3T & min ( ) const
inline

◆ operator!=()

template<typename Vec3T>
__hostdev__ bool operator!= ( const BaseBBox< Vec3T > & rhs) const
inline

◆ operator==()

template<typename Vec3T>
__hostdev__ bool operator== ( const BaseBBox< Vec3T > & rhs) const
inline

◆ operator[]() [1/2]

template<typename Vec3T>
__hostdev__ Vec3T & operator[] ( int i)
inline

◆ operator[]() [2/2]

template<typename Vec3T>
__hostdev__ const Vec3T & operator[] ( int i) const
inline

◆ translate()

template<typename Vec3T>
__hostdev__ BaseBBox & translate ( const Vec3T & xyz)
inline

Member Data Documentation

◆ mCoord

template<typename Vec3T>
Vec3T mCoord[2]