Space Comps
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
src
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
Physics
The Physics class.
Definition:
physics.h:15
Particle
Definition:
particle.h:12
Physics2D::Physics2D
Physics2D(double xWinSize, double yWinSize)
Constructs a Physics2D object.
Definition:
physics2d.cpp:3
Physics2D
The Physics2D class is a Physics that works specifically in two d.
Definition:
physics2d.h:12
Generated on Sun Feb 23 2014 12:52:24 for Space Comps by
1.8.6