Space Comps
 All Classes Files Functions Variables
physics2d.h
1 #ifndef PHYSICS2D_H
2 #define PHYSICS2D_H
3 #include "physics.h"
4 
12 class Physics2D : public Physics
13 {
14 public:
23  Physics2D(double xWinSize, double yWinSize);
24  ~Physics2D();
25 
26 protected:
27  double xWinSize;
28  double yWinSize;
29 
30  void fixWallCollision(Particle* p, double newXpos, double newYpos, double newXvel, double newYvel, int timestep);
31 
32 private:
33  void updatePositionAndVelocity(Particle* p, int timestep);
34 };
35 
36 #endif // PHYSICS2D_H
The Physics class.
Definition: physics.h:15
Definition: particle.h:12
Physics2D(double xWinSize, double yWinSize)
Constructs a Physics2D object.
Definition: physics2d.cpp:3
The Physics2D class is a Physics that works specifically in two d.
Definition: physics2d.h:12