MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
mgx::util::BoundingBox< N, T > Class Template Reference

Public Types

typedef Vector< N, T > Point
 
typedef std::numeric_limits< T > limits
 

Public Member Functions

CU_HOST_DEVICE BoundingBox (const Point &vmin, const Point &vmax)
 
CU_HOST_DEVICE BoundingBox (const BoundingBox &copy)
 
CU_HOST_DEVICE BoundingBox (const Point &p)
 
CU_HOST_DEVICE void reset ()
 
CU_HOST_DEVICE bool empty () const
 
CU_HOST_DEVICE operator bool () const
 
CU_HOST_DEVICE bool operator== (const BoundingBox &other) const
 
CU_HOST_DEVICE bool operator!= (const BoundingBox &other) const
 
CU_HOST_DEVICE Point size () const
 
CU_HOST_DEVICE BoundingBoxoperator&= (const BoundingBox &other)
 Bounding box intersection.
 
CU_HOST_DEVICE BoundingBox operator& (const BoundingBox &other) const
 
CU_HOST_DEVICE BoundingBoxoperator*= (const BoundingBox &other)
 
CU_HOST_DEVICE BoundingBox operator* (const BoundingBox &other) const
 
CU_HOST_DEVICE BoundingBoxoperator|= (const BoundingBox &other)
 Bounding box union.
 
CU_HOST_DEVICE BoundingBox operator| (const BoundingBox &other) const
 
CU_HOST_DEVICE BoundingBoxoperator+= (const BoundingBox &other)
 
CU_HOST_DEVICE BoundingBox operator+ (const BoundingBox &other) const
 
CU_HOST_DEVICE BoundingBoxoperator|= (const Point &p)
 Adding a point.
 
CU_HOST_DEVICE BoundingBox operator| (const Point &p) const
 
CU_HOST_DEVICE const Pointoperator[] (int i) const
 
CU_HOST_DEVICE Pointoperator[] (int i)
 
CU_HOST_DEVICE bool contains (const Point &p) const
 Check if a point is in the BoundingBox.
 
CU_HOST_DEVICE Pointdata ()
 
CU_HOST_DEVICE Point pmin ()
 
CU_HOST_DEVICE Point pmin () const
 
CU_HOST_DEVICE Point pmax ()
 
CU_HOST_DEVICE Point pmax () const
 

Public Attributes

Point pts [2]
 

Friends

CU_HOST_DEVICE friend BoundingBox operator& (const Point &p, const BoundingBox &b)
 
CU_HOST_DEVICE friend
std::ostream & 
operator<< (std::ostream &s, const BoundingBox &bbox)
 
CU_HOST_DEVICE friend
std::istream & 
operator>> (std::istream &s, BoundingBox &bbox)
 
QTextStreamoperator<< (QTextStream &s, const BoundingBox &bbox)
 
QTextStreamoperator>> (QTextStream &s, BoundingBox &bbox)
 

The documentation for this class was generated from the following file: