Space Comps
 All Classes Files Functions Variables
bruteforcealgorithm.h
1 #ifndef BRUTEFORCEALGORITHM_H
2 #define BRUTEFORCEALGORITHM_H
3 #include <math.h>
4 #include "algorithm.h"
5 
6 #define _USE_MATH_DEFINES
7 
17 {
18 public:
29  BruteForceAlgorithm(int xIn, int yIn, int numParticles);
30 
42  BruteForceAlgorithm(int xIn, int yIn, int zIn, int numParticles);
43 
56  BruteForceAlgorithm(int xIn, int yIn, int zIn, int numParticles, double centerMass);
57 
59 
60 private:
61  void calculateNextTimestep();
62 };
63 
64 #endif // BRUTEFORCEALGORITHM_H
BruteForceAlgorithm(int xIn, int yIn, int numParticles)
Constructs a 2d BruteForceAlgorithm.
Definition: bruteforcealgorithm.cpp:4
The Algorithm class is a parent to all the specific Algorithms we test.
Definition: algorithm.h:16
The BruteForceAlgorithm class executes the simple O(n^2) method.
Definition: bruteforcealgorithm.h:16