Space Comps
 All Classes Files Functions Variables
boundary.h
1 #ifndef BOUNDARY_H
2 #define BOUNDARY_H
3 
4 #include "boundingbox.h"
5 
9 class Boundary
10 {
11 public:
26  Boundary(int dimensionIn, double valueIn, bool isUpper, BoundingBox* boxIn);
27 
28  ~Boundary();
29 
34  double getValue();
35 
40  bool isUpper();
41 
46  bool isLower();
47 
52  int getDimension();
53 
59 
64  void update();
65 
66 private:
67  double value;
68  bool upper;
69  int dimension;
70  BoundingBox* box;
71 };
72 
73 
74 #endif // BOUNDARY_H
bool isUpper()
Returns whether or not this is an upper bound of a BoundingBox.
Definition: boundary.cpp:18
The BoundingBox class represents a square or cube that fits perfectly around a particle.
Definition: boundingbox.h:14
Boundary(int dimensionIn, double valueIn, bool isUpper, BoundingBox *boxIn)
Constructs a Boundary Object.
Definition: boundary.cpp:3
bool isLower()
Returns whether or not this is a lower bound of a BoundingBox.
Definition: boundary.cpp:23
int getDimension()
Returns the dimension this Boundary is bounding.
Definition: boundary.cpp:28
The Boundary class is an object representing a Particle's endpoints.
Definition: boundary.h:9
void update()
Adjusts the coordinte value of this Bounary to reflect the current location of its associated Boundin...
Definition: boundary.cpp:38
double getValue()
Returns the coordinate of this Boundary.
Definition: boundary.cpp:13
BoundingBox * getBox()
Returns a pointer to the BoundingBox this Boundary relates to.
Definition: boundary.cpp:33