Main Page
Namespaces
Classes
Files
File List
File Members
include
fiducial_lib
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)
BoundingBox
Definition:
Bounding_Box.hpp:7
BoundingBox::minimum_y
double minimum_y
Definition:
Bounding_Box.hpp:12
BoundingBox::max_y
double max_y()
Definition:
Bounding_Box.hpp:29
BoundingBox::reset
void reset()
Resets the contents of bounding_box to empty.
Definition:
Bounding_Box.cpp:16
BoundingBox::maximum_y
double maximum_y
Definition:
Bounding_Box.hpp:11
BoundingBox::max_x
double max_x()
Definition:
Bounding_Box.hpp:27
BoundingBox::min_x
double min_x()
Definition:
Bounding_Box.hpp:26
BoundingBox::maximum_x
double maximum_x
Definition:
Bounding_Box.hpp:9
BoundingBox::BoundingBox
BoundingBox()
Definition:
Bounding_Box.cpp:7
BoundingBox::minimum_x
double minimum_x
Definition:
Bounding_Box.hpp:10
BoundingBox::min_y
double min_y()
Definition:
Bounding_Box.hpp:28
BoundingBox::update
void update(double x, double y)
Adds the point (x, y) to *bounding_box.
Definition:
Bounding_Box.cpp:32
fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53