Celeritas
0.5.0-56+6b053cd
|
#include <cmath>
#include <type_traits>
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "corecel/cont/Array.hh"
#include "corecel/math/NumericLimits.hh"
#include "Types.hh"
Classes | |
class | celeritas::BoundingBox< T > |
Axis-aligned bounding box. More... | |
Typedefs | |
using | celeritas::BBox = BoundingBox<> |
Bounding box for host metadata. | |
Functions | |
template<class T > | |
CELER_CONSTEXPR_FUNCTION bool | celeritas::operator== (BoundingBox< T > const &lhs, BoundingBox< T > const &rhs) |
Test equality of two bounding boxes. | |
template<class T > | |
CELER_CONSTEXPR_FUNCTION bool | celeritas::operator!= (BoundingBox< T > const &lhs, BoundingBox< T > const &rhs) |
Test inequality of two bounding boxes. | |
template<class T , class U > | |
CELER_CONSTEXPR_FUNCTION bool | celeritas::is_inside (BoundingBox< T > const &bbox, Array< U, 3 > const &point) |
Determine if a point is contained in a bounding box. More... | |
CELER_CONSTEXPR_FUNCTION bool celeritas::is_inside | ( | BoundingBox< T > const & | bbox, |
Array< U, 3 > const & | point | ||
) |
Determine if a point is contained in a bounding box.
No point is ever contained in a null bounding box. A degenerate bounding box will return "true" for any point on its face.