valSPH
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
SpatialHashing.h
Go to the documentation of this file.
1
10
#ifndef __SpatialHashing_h__
11
#define __SpatialHashing_h__
12
13
#include "
SpatialIndex.h
"
14
#include "
Particle.h
"
15
16
#include <vector>
17
#include <list>
18
19
using namespace
std;
20
21
22
class
SpatialHashing
:
public
SpatialIndex
{
23
24
25
private
:
26
27
28
29
public
:
30
31
35
SpatialHashing
();
36
37
46
SpatialHashing
(
47
vector<double> qiMin,
48
vector<double> qiMax,
49
double
smoothingLength,
50
vector<Particle> particles
51
);
52
53
59
list<Particle> getNNP(
Particle
particle, vector<Particle> particles);
60
61
67
void
update(vector<Particle> particles);
68
69
73
~
SpatialHashing
();
74
75
76
};
77
78
79
#endif
valCode
repository
valSPH
src
SpatialHashing.h
Generated on Fri Nov 23 2012 19:13:59 for valSPH by
1.8.2