#include <src/KDTree.h>
template<class T, std::size_t N>
BoundingBox struct
A simple bounding box.
| Template parameters | |
|---|---|
| T | the type of point (must be a real floating point type) |
| N | the dimension of the point (must be greater than zero) |
Contents
Public types
- using Point = Eigen::Matrix<T, N, 1>
Constructors, destructors, conversion operators
- BoundingBox(const Point& min, const Point& max)
- BoundingBox(const Point&& min, const Point&& max)
Public functions
- auto hyperSphereIntersection(const Point& p, const T& radius) const -> bool
Public variables
Typedef documentation
template<class T, std::size_t N>
typedef Eigen::Matrix<T, N, 1> BoundingBox<T, N>:: Point
Alias for the internal point structure
Function documentation
template<class T, std::size_t N>
BoundingBox<T, N>:: BoundingBox(const Point& min,
const Point& max)
| Parameters | |
|---|---|
| min | the lower end of the bounding box |
| max | the upper end of the bounding box |
Constructor of the bounding box
template<class T, std::size_t N>
BoundingBox<T, N>:: BoundingBox(const Point&& min,
const Point&& max)
| Parameters | |
|---|---|
| min | the lower end of the bounding box |
| max | the upper end of the bounding box |
rvalue constructor of the bounding box
template<class T, std::size_t N>
bool BoundingBox<T, N>:: hyperSphereIntersection(const Point& p,
const T& radius) const
| Parameters | |
|---|---|
| p | the center of the hypersphere |
| radius | the radius of the hypersphere |
Check if an hypersphere intersects the bounding box. The algorithm is an adaptation in N dimension of the method proposed by e.James from https:/