Space Comps
 All Classes Files Functions Variables
spatialhashalgorithm3d.h
1 #ifndef SPATIALHASHALGORITHM3D_H
2 #define SPATIALHASHALGORITHM3D_H
3 #include <math.h>
4 #include <unordered_map>
5 #include "algorithm.h"
6 #include "boundingbox.h"
7 #include <unordered_set>
8 
10 {
11 public:
12  SpatialHashAlgorithm3d(int xIn, int yIn, int zIn, int numParticles);
13  SpatialHashAlgorithm3d(int xIn, int yIn, int zIn, int numParticles, double centerMass);
14 
16 
17 private:
18  void calculateNextTimestep();
19  int hashFunc(int x, int y, int z);
20  int hashFunc(int x, int y);
21  std::vector<BoundingBox*> boundingBoxes;
22 
23 };
24 
25 #endif // SPATIALHASHALGORITHM3D_H
The Algorithm class is a parent to all the specific Algorithms we test.
Definition: algorithm.h:16
Definition: spatialhashalgorithm3d.h:9