Fermat
Classes | Namespaces | Typedefs | Functions
bbox.h File Reference

Defines an axis-aligned bounding box class. More...

#include <cugar/basic/numbers.h>
#include <cugar/linalg/vector.h>
#include <limits>
#include <algorithm>
#include <cugar/linalg/bbox_inline.h>

Go to the source code of this file.

Classes

struct  cugar::Bbox< Vector_t >
 
struct  cugar::bbox_area_functor< DIM >
 

Namespaces

 cugar
 Define a vector_view POD type and plain_view() for std::vector.
 

Typedefs

typedef Bbox< Vector2f > cugar::Bbox2f
 
typedef Bbox< Vector3f > cugar::Bbox3f
 
typedef Bbox< Vector4f > cugar::Bbox4f
 
typedef Bbox< Vector2d > cugar::Bbox2d
 
typedef Bbox< Vector3d > cugar::Bbox3d
 
typedef Bbox< Vector4d > cugar::Bbox4d
 
typedef Bbox< Vector2i > cugar::Bbox2i
 
typedef Bbox< Vector3i > cugar::Bbox3i
 
typedef Bbox< Vector4i > cugar::Bbox4i
 
typedef Bbox< Vector2u > cugar::Bbox2u
 
typedef Bbox< Vector3u > cugar::Bbox3u
 
typedef Bbox< Vector4u > cugar::Bbox4u
 

Functions

CUGAR_HOST_DEVICE float cugar::area (const Bbox2f &bbox)
 
CUGAR_HOST_DEVICE float cugar::area (const Bbox3f &bbox)
 
template<typename Vector_t >
CUGAR_HOST_DEVICE bool cugar::contains (const Bbox< Vector_t > &bbox, const Vector_t &p)
 
template<typename Vector_t >
CUGAR_HOST_DEVICE bool cugar::contains (const Bbox< Vector_t > &bbox, const Bbox< Vector_t > &candidate)
 
template<typename Vector_t >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE float cugar::sq_distance (const Bbox< Vector_t > &bbox, const Vector_t &p)
 
template<typename Vector_t >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE size_t cugar::largest_axis (const Bbox< Vector_t > &bbox)
 
template<typename Vector_t >
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector_t cugar::extents (const Bbox< Vector_t > &bbox)
 

Detailed Description

Defines an axis-aligned bounding box class.