ug4
ug::AABox< vector_t > Struct Template Reference

#include <shapes.h>

Public Member Functions

 AABox ()
 
 AABox (const AABox &b, const vector_t &v)
 calculates the bounding box of a given box and an additional point More...
 
 AABox (const AABox &b1, const AABox &b2)
 calculates the bounding box of two given bounding boxes More...
 
 AABox (const Sphere< vector_t > &s)
 calculates the bounding box of the given sphere More...
 
 AABox (const vector_t &nMin, const vector_t &nMax)
 
 AABox (const vector_t *points, size_t numPoints)
 calculates the bounding box to the given set of points. More...
 
vector_t center () const
 returns the center of the box More...
 
bool contains_point (const vector_t &point) const
 returns true if the given point lies in the box or on its boundary More...
 
vector_t extension () const
 returns the extension (width/height/depth) of the box More...
 
bool overlaps_line (const vector_t &point1, const vector_t &point2) const
 return true if the given line (segment) and the box overlap More...
 

Public Attributes

vector_t max
 
vector_t min
 

Constructor & Destructor Documentation

◆ AABox() [1/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( )
inline

◆ AABox() [2/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( const vector_t &  nMin,
const vector_t &  nMax 
)
inline

◆ AABox() [3/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( const vector_t *  points,
size_t  numPoints 
)

calculates the bounding box to the given set of points.

References ug::VecSet().

◆ AABox() [4/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( const AABox< vector_t > &  b1,
const AABox< vector_t > &  b2 
)

calculates the bounding box of two given bounding boxes

◆ AABox() [5/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( const Sphere< vector_t > &  s)

calculates the bounding box of the given sphere

◆ AABox() [6/6]

template<class vector_t >
ug::AABox< vector_t >::AABox ( const AABox< vector_t > &  b,
const vector_t &  v 
)

calculates the bounding box of a given box and an additional point

References ug::AABox< vector_t >::max, and ug::AABox< vector_t >::min.

Member Function Documentation

◆ center()

template<class vector_t >
vector_t ug::AABox< vector_t >::center

returns the center of the box

References ug::VecAdd(), and ug::VecScale().

◆ contains_point()

template<class vector_t >
bool ug::AABox< vector_t >::contains_point ( const vector_t &  point) const

returns true if the given point lies in the box or on its boundary

References ug::BoxBoundProbe().

Referenced by ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_contains_point().

◆ extension()

template<class vector_t >
vector_t ug::AABox< vector_t >::extension

returns the extension (width/height/depth) of the box

References ug::VecSubtract().

Referenced by ug::UGXFileInfo::parse_file().

◆ overlaps_line()

template<class vector_t >
bool ug::AABox< vector_t >::overlaps_line ( const vector_t &  point1,
const vector_t &  point2 
) const

return true if the given line (segment) and the box overlap

References ug::BoxBoxIntersection().

Member Data Documentation

◆ max

◆ min


The documentation for this struct was generated from the following files: