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