CMS 3D CMS Logo

BoundingBox.h
Go to the documentation of this file.
1 #ifndef BoundingBox_H
2 #define BoundingBox_H
3 
5 #include <vector>
6 
7 class Plane;
8 
12 class BoundingBox {
13 public:
14 
16  BoundingBox(const Plane& plane);
17 
18  // old interface
19  static std::vector<GlobalPoint> corners( const Plane&);
20 
21 
22  GlobalPoint const & operator[](unsigned int i) const {
23  return m_corners[i];
24  }
25  GlobalPoint const & corner(unsigned int i) const {
26  return m_corners[i];
27  }
28 
29 
30 private:
31 
32 
34 
35 };
36 
37 #endif
GlobalPoint const & corner(unsigned int i) const
Definition: BoundingBox.h:25
GlobalPoint const & operator[](unsigned int i) const
Definition: BoundingBox.h:22
Definition: Plane.h:17
static std::vector< GlobalPoint > corners(const Plane &)
Definition: BoundingBox.cc:24
GlobalPoint m_corners[8]
Definition: BoundingBox.h:33