Space Comps
 All Classes Files Functions Variables
physics3d.h
1 #ifndef PHYSICS3D_H
2 #define PHYSICS3D_H
3 #include "physics.h"
4 
11 class Physics3D : public Physics
12 {
13 public:
23  Physics3D(double xIn, double yIn, double zIn);
24  ~Physics3D();
25 
26 // double calculateDistanceBetweenParticles(Particle* a, Particle* b);
27 
28 private:
29  void fixWallCollision(Particle* p, double newXPos, double newYpos, double newZpos, double newXvel, double newYvel, double newZvel, int timestep);
30  void updatePositionAndVelocity(Particle* p, int timestep);
31 
32  double xWinSize;
33  double yWinSize;
34  double zWinSize;
35 
36 };
37 
38 #endif // PHYSICS3D_H
The Physics class.
Definition: physics.h:15
Physics3D(double xIn, double yIn, double zIn)
Constructs a Physics3D object.
Definition: physics3d.cpp:3
The Physics3D class is a Physics that works specifically in 3d.
Definition: physics3d.h:11
Definition: particle.h:12