Space Comps
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
src
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
9
class
SpatialHashAlgorithm3d
:
public
Algorithm
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
15
~
SpatialHashAlgorithm3d
();
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
Algorithm
The Algorithm class is a parent to all the specific Algorithms we test.
Definition:
algorithm.h:16
SpatialHashAlgorithm3d
Definition:
spatialhashalgorithm3d.h:9
Generated on Sun Feb 23 2014 12:52:24 for Space Comps by
1.8.6