Euclid
Geometry Processing and Shape Analysis in C++
|
Axis Aligned Bounding Box. More...
#include <AABB.h>
Public Types | |
using | Point_3 = typename Kernel::Point_3 |
using | FT = typename Kernel::FT |
Public Member Functions | |
AABB (const std::vector< FT > &positions) | |
Build AABB for a set of positions. | |
AABB (const std::vector< Point_3 > &points) | |
Build AABB for a set of points. | |
template<typename ForwardIterator , typename VPMap > | |
AABB (ForwardIterator first, ForwardIterator beyond, VPMap vpmap) | |
Build AABB for a range of points. | |
Point_3 | center () const |
Return the center of the box. | |
FT | xmin () const |
Return x min. | |
FT | xmax () const |
Return x max. | |
FT | xlen () const |
Return the length of edge along the x axis. | |
FT | ymin () const |
Return y min. | |
FT | ymax () const |
Return y max. | |
FT | ylen () const |
Return the length of edge along the y axis. | |
FT | zmin () const |
Return z min. | |
FT | zmax () const |
Return z max. | |
FT | zlen () const |
Return the length of edge along the z axis. | |
Point_3 | point (bool xlarge, bool ylarge, bool zlarge) const |
Return the corner point of the box. More... | |
This class uses right-handed coordinate system.
AABB< Kernel >::Point_3 Euclid::AABB< Kernel >::point | ( | bool | xlarge, |
bool | ylarge, | ||
bool | zlarge | ||
) | const |
xlarge | Set to true for the larger x-corner, to false otherwise. |
ylarge | Set to true for the larger y-corner, to false otherwise. |
zlarge | Set to true for the larger z-corner, to false otherwise. |