Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Bbox_3 Class Reference

#include <Bbox_3.h>

Inheritance diagram for Bbox_3:
Collaboration diagram for Bbox_3:

Public Member Functions

 Bbox_3 ()
 
 Bbox_3 (double x_min, double y_min, double zmin, double x_max, double y_max, double z_max)
 
double xmin () const
 
double ymin () const
 
double zmin () const
 
double xmax () const
 
double ymax () const
 
double zmax () const
 
Bbox_3 operator+ (const Bbox_3 &b) const
 
 Bbox_3 ()
 
 Bbox_3 (double x_min, double y_min, double z_min, double x_max, double y_max, double z_max)
 
template<class Point3 >
 Bbox_3 (const Point3 &p)
 
double xmin () const
 
double ymin () const
 
double zmin () const
 
double xmax () const
 
double ymax () const
 
double zmax () const
 
Bbox_3 operator+ (const Bbox_3 &b) const
 
Bbox_3operator+= (const Bbox_3 &b)
 
bool do_match (const Bbox_3 &bb, double tol) const
 

Private Attributes

double _min [3]
 
double _max [3]
 

Detailed Description

Definition at line 65 of file CGAL/include/CGAL/Bbox_3.h.

Constructor & Destructor Documentation

Bbox_3 ( )
inline

Definition at line 83 of file CGAL/include/CGAL/Bbox_3.h.

Referenced by operator+().

84 { new ( static_cast< void*>(ptr)) Sixtuple<double>(); }

Here is the caller graph for this function:

Bbox_3 ( double  x_min,
double  y_min,
double  zmin,
double  x_max,
double  y_max,
double  z_max 
)
inline

Definition at line 87 of file CGAL/include/CGAL/Bbox_3.h.

89 {
90  new ( static_cast< void*>(ptr)) Sixtuple<double>(x_min, y_min, z_min,
91  x_max, y_max, z_max);
92 }
Bbox_3 ( )
inline

Definition at line 36 of file include/CGAL/Bbox_3.h.

References _max, and _min.

36  {
37  _min[0] = _min[1] = _min[2] = HUGE_VAL;
38  _max[0] = _max[1] = _max[2] = -HUGE_VAL;
39  }
double _min[3]
double _max[3]
Bbox_3 ( double  x_min,
double  y_min,
double  z_min,
double  x_max,
double  y_max,
double  z_max 
)
inline

Definition at line 41 of file include/CGAL/Bbox_3.h.

References _max, and _min.

42  {
43  _min[0]=x_min; _min[1]=y_min; _min[2]=z_min;
44  _max[0]=x_max; _max[1]=y_max; _max[2]=z_max;
45  }
double _min[3]
double _max[3]
Bbox_3 ( const Point3 &  p)
inlineexplicit

Definition at line 48 of file include/CGAL/Bbox_3.h.

References _max, and _min.

48  {
49  _min[0]=p[0]; _min[1]=p[1]; _min[2]=p[2];
50  _max[0]=p[0]; _max[1]=p[1]; _max[2]=p[2];
51  }
double _min[3]
double _max[3]

Member Function Documentation

bool do_match ( const Bbox_3 bb,
double  tol 
) const
inline

Definition at line 83 of file include/CGAL/Bbox_3.h.

References NTS::abs(), xmax(), xmin(), ymax(), ymin(), zmax(), and zmin().

Referenced by Overlay::overlay().

83  {
84  return (std::abs(xmax()-bb.xmax()) <= tol &&
85  std::abs(xmin()-bb.xmin()) <= tol &&
86  std::abs(ymax()-bb.ymax()) <= tol &&
87  std::abs(ymin()-bb.ymin()) <= tol &&
88  std::abs(zmax()-bb.zmax()) <= tol &&
89  std::abs(zmin()-bb.zmin()) <= tol);
90  }
double xmax() const
double xmin() const
double zmin() const
double ymax() const
double zmax() const
double ymin() const
NT abs(const NT &x)
Definition: number_utils.h:130

Here is the call graph for this function:

Here is the caller graph for this function:

Bbox_3 operator+ ( const Bbox_3 b) const
inline

Definition at line 64 of file include/CGAL/Bbox_3.h.

64  {
65  Bbox_3 box=*this; box+=b; return box;
66  }
KD_tree::Box box
Definition: Overlay_0d.C:47
Bbox_3 operator+ ( const Bbox_3 b) const
inline

Definition at line 123 of file CGAL/include/CGAL/Bbox_3.h.

References Bbox_3(), max(), min(), xmax(), xmin(), ymax(), ymin(), zmax(), and zmin().

124 {
125  return Bbox_3(std::min(xmin(), b.xmin()),
126  std::min(ymin(), b.ymin()),
127  std::min(zmin(), b.zmin()),
128  std::max(xmax(), b.xmax()),
129  std::max(ymax(), b.ymax()),
130  std::max(zmax(), b.zmax()));
131 }
double xmax() const
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:354
double xmin() const
double zmin() const
double ymax() const
double zmax() const
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:346
double ymin() const

Here is the call graph for this function:

Bbox_3& operator+= ( const Bbox_3 b)
inline

Definition at line 68 of file include/CGAL/Bbox_3.h.

References _max, _min, max(), and min().

68  {
69  _min[0] = std::min(_min[0], b._min[0]);
70  _min[1] = std::min(_min[1], b._min[1]);
71  _min[2] = std::min(_min[2], b._min[2]);
72 
73  _max[0] = std::max(_max[0], b._max[0]);
74  _max[1] = std::max(_max[1], b._max[1]);
75  _max[2] = std::max(_max[2], b._max[2]);
76 
77  return *this;
78  }
double _min[3]
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:354
double _max[3]
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
Definition: Vector_n.h:346

Here is the call graph for this function:

double xmax ( ) const
inline

Definition at line 60 of file include/CGAL/Bbox_3.h.

References _max.

60 { return _max[0]; }
double _max[3]
double xmax ( ) const
inline

Definition at line 111 of file CGAL/include/CGAL/Bbox_3.h.

Referenced by do_match(), do_overlap(), do_overlap_eps(), do_overlap_strict(), equal(), operator+(), operator<<(), and Overlay::overlay().

112 { return ptr->e3; }

Here is the caller graph for this function:

double xmin ( ) const
inline

Definition at line 57 of file include/CGAL/Bbox_3.h.

References _min.

57 { return _min[0]; }
double _min[3]
double xmin ( ) const
inline

Definition at line 96 of file CGAL/include/CGAL/Bbox_3.h.

Referenced by do_match(), do_overlap(), do_overlap_eps(), do_overlap_strict(), equal(), operator+(), operator<<(), and Overlay::overlay().

97 { return ptr->e0; }

Here is the caller graph for this function:

double ymax ( ) const
inline

Definition at line 61 of file include/CGAL/Bbox_3.h.

References _max.

61 { return _max[1]; }
double _max[3]
double ymax ( ) const
inline

Definition at line 116 of file CGAL/include/CGAL/Bbox_3.h.

Referenced by do_match(), do_overlap(), do_overlap_eps(), do_overlap_strict(), equal(), operator+(), operator<<(), and Overlay::overlay().

117 { return ptr->e4; }

Here is the caller graph for this function:

double ymin ( ) const
inline

Definition at line 58 of file include/CGAL/Bbox_3.h.

References _min.

58 { return _min[1]; }
double _min[3]
double ymin ( ) const
inline

Definition at line 101 of file CGAL/include/CGAL/Bbox_3.h.

Referenced by do_match(), do_overlap(), do_overlap_eps(), do_overlap_strict(), equal(), operator+(), operator<<(), and Overlay::overlay().

102 { return ptr->e1; }

Here is the caller graph for this function:

double zmax ( ) const
inline

Definition at line 62 of file include/CGAL/Bbox_3.h.

References _max.

62 { return _max[2]; }
double _max[3]
double zmin ( ) const
inline

Definition at line 59 of file include/CGAL/Bbox_3.h.

References _min.

59 { return _min[2]; }
double _min[3]

Member Data Documentation

double _max[3]
private

Definition at line 93 of file include/CGAL/Bbox_3.h.

Referenced by Bbox_3(), operator+=(), xmax(), ymax(), and zmax().

double _min[3]
private

Definition at line 93 of file include/CGAL/Bbox_3.h.

Referenced by Bbox_3(), operator+=(), xmin(), ymin(), and zmin().


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