1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef BoundingBox_H
#define BoundingBox_H
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include <vector>
class Plane;
/** A helper class that returns the corners of a rectangle that
* fully contains a bound plane.
*/
class BoundingBox {
public:
BoundingBox() {}
BoundingBox(const Plane& plane);
// old interface
static std::vector<GlobalPoint> corners(const Plane&);
GlobalPoint const& operator[](unsigned int i) const { return m_corners[i]; }
GlobalPoint const& corner(unsigned int i) const { return m_corners[i]; }
private:
GlobalPoint m_corners[8];
};
#endif
|