geirs2Panic  Richard J. Mathar
Fits header keyword batch editor
 All Classes Files Functions Variables Macros Pages
Bbox2D.h
Go to the documentation of this file.
1 #ifndef BBOX2D_H
2 #define BBOX2D_H
3 
4 /*
5 * "$Header:$"
6 */
7 
8 #include "Point2D.h"
9 
10 using namespace std ;
11 
17 class Bbox2D {
18 
19 public:
22  Point2D limits[2] ;
23 
24  Bbox2D(const Point2D &ptll, const Point2D & ptur) ;
25  Bbox2D() ;
26  // ~Bbox2D() ;
27 
28  Bbox2D apply(const RotTrans2D & rt) const ;
29 
30  void include(const Point2D &pt) ;
31 
32  bool isInside(const Point2D & pt) const ;
33 
34  Point2D lowerRight() const ;
35  Point2D upperLeft() const ;
36 
37 protected:
38 
39 private:
40 
41 } ; /* Bbox2D */
42 
43 #endif /* BBOX2D_H */
A rotation followed by a translation.
Definition: RotTrans2D.h:34
A 2-dimensional rectangular boundary box parallel to the two Cartesian axes.
Definition: Bbox2D.h:17
A point with 2 coordinates represented in a Cartesian coordinate system.
Definition: Point2D.h:20