ug4
|
#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 |
|
inline |
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().
ug::AABox< vector_t >::AABox | ( | const AABox< vector_t > & | b1, |
const AABox< vector_t > & | b2 | ||
) |
calculates the bounding box of two given bounding boxes
calculates the bounding box of the given sphere
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.
vector_t ug::AABox< vector_t >::center |
returns the center of the box
References ug::VecAdd(), and ug::VecScale().
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().
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().
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().
vector_t ug::AABox< vector_t >::max |
Referenced by ug::AABox< vector_t >::AABox(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_box_intersection(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_diagonal(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::calculate_bounding_box(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::grow_box(), ug::operator<<(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::ray_box_intersection(), ug::ntree_traits< 1, 1, elem_t, NTreeGridData< 1 > >::split_box(), ug::ntree_traits< 1, 2, elem_t, NTreeGridData< 2 > >::split_box(), ug::ntree_traits< 2, 2, elem_t, NTreeGridData< 2 > >::split_box(), ug::ntree_traits< 2, 3, elem_t, NTreeGridData< 3 > >::split_box(), ug::ntree_traits< 3, 3, elem_t, NTreeGridData< 3 > >::split_box(), and ug::TIKZElem::TIKZElem().
vector_t ug::AABox< vector_t >::min |
Referenced by ug::AABox< vector_t >::AABox(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_box_intersection(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::box_diagonal(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::calculate_bounding_box(), ug::AABox< ug::MathVector< dim > >::center(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::grow_box(), ug::operator<<(), ug::lg_ntree_traits_base< tree_dim, world_dim, elem_t_, common_data_t_ >::ray_box_intersection(), ug::ntree_traits< 1, 1, elem_t, NTreeGridData< 1 > >::split_box(), ug::ntree_traits< 1, 2, elem_t, NTreeGridData< 2 > >::split_box(), ug::ntree_traits< 2, 2, elem_t, NTreeGridData< 2 > >::split_box(), ug::ntree_traits< 2, 3, elem_t, NTreeGridData< 3 > >::split_box(), ug::ntree_traits< 3, 3, elem_t, NTreeGridData< 3 > >::split_box(), and ug::TIKZElem::TIKZElem().