Newer
Older
#ifndef BOX_HPP
#define BOX_HPP
private:
double min[3];
double max[3];
public:
Box();
virtual ~Box();
virtual void extendForBodies(vector<Body> bodies);
virtual double getMin(int index);
virtual double getMax(int index);
virtual void setMin(int index, double value);
virtual void setMax(int index, double value);
virtual vector<Body> extractBodies(vector<Body>& bodies);
virtual vector<Body> copyBodies(vector<Body> bodies);
virtual bool isContained(Body body);
virtual bool isContained(Box box);
virtual bool isCorrect();
virtual void print();
virtual bool overlapsSphere(double* sphereCenter, double sphereRadius);
virtual double distanceToPosition(double* position);