Bounding_Box.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013 by Wayne C. Gramlich. All rights reserved.
2 
3 #if !defined(BOUNDING_BOX_H_INCLUDED)
4 #define BOUNDING_BOX_H_INCLUDED 1
5 
6 
7 class BoundingBox {
8  private:
9  double maximum_x;
10  double minimum_x;
11  double maximum_y;
12  double minimum_y;
13 
14  public:
15  // @brief Create a new empty *BoundingBox* object
16  BoundingBox();
17 
18  // @brief Resets the contents of this *BoundingBox* to empty
19  void reset();
20 
21  // @brief Add the point (*x*, *y*) to this *BoundingBox*
22  // @param x is the X value to update
23  // @param y is the Y value to update
24  void update(double x, double y);
25 
26  double min_x() { return minimum_x; }
27  double max_x() { return maximum_x; }
28  double min_y() { return minimum_y; }
29  double max_y() { return maximum_y; }
30 };
31 
32 #endif // !defined(BOUNDING_BOX_H_INCLUDED)
double minimum_y
double max_y()
void reset()
Resets the contents of bounding_box to empty.
double maximum_y
double max_x()
double min_x()
double maximum_x
Definition: Bounding_Box.hpp:9
double minimum_x
double min_y()
void update(double x, double y)
Adds the point (x, y) to *bounding_box.


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53