Public Member Functions | Private Attributes | List of all members
BoundingBox Class Reference

#include <Bounding_Box.hpp>

Public Member Functions

 BoundingBox ()
 
double max_x ()
 
double max_y ()
 
double min_x ()
 
double min_y ()
 
void reset ()
 Resets the contents of bounding_box to empty. More...
 
void update (double x, double y)
 Adds the point (x, y) to *bounding_box. More...
 

Private Attributes

double maximum_x
 
double maximum_y
 
double minimum_x
 
double minimum_y
 

Detailed Description

Definition at line 7 of file Bounding_Box.hpp.

Constructor & Destructor Documentation

BoundingBox::BoundingBox ( )

Definition at line 7 of file Bounding_Box.cpp.

Member Function Documentation

double BoundingBox::max_x ( )
inline

Definition at line 27 of file Bounding_Box.hpp.

double BoundingBox::max_y ( )
inline

Definition at line 29 of file Bounding_Box.hpp.

double BoundingBox::min_x ( )
inline

Definition at line 26 of file Bounding_Box.hpp.

double BoundingBox::min_y ( )
inline

Definition at line 28 of file Bounding_Box.hpp.

void BoundingBox::reset ( )

Resets the contents of bounding_box to empty.

Parameters
bounding_boxto be reset.

Bounding_Box__reset() will reset bounding_box to the empty state.

Definition at line 16 of file Bounding_Box.cpp.

void BoundingBox::update ( double  x,
double  y 
)

Adds the point (x, y) to *bounding_box.

Parameters
bounding_boxto be updated.
xis the X value to update.
yis the Y value to update.

Bounding_Box__update() will update the contents of bounding_box to enclose (x, y).

Definition at line 32 of file Bounding_Box.cpp.

Member Data Documentation

double BoundingBox::maximum_x
private

Definition at line 9 of file Bounding_Box.hpp.

double BoundingBox::maximum_y
private

Definition at line 11 of file Bounding_Box.hpp.

double BoundingBox::minimum_x
private

Definition at line 10 of file Bounding_Box.hpp.

double BoundingBox::minimum_y
private

Definition at line 12 of file Bounding_Box.hpp.


The documentation for this class was generated from the following files:


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