Represents a particle in the 2D simulation box.
More...
#include <initial.h>
|
| Particle (double x_init=0.0, double y_init=0.0) |
| Constructs a Particle with the given initial position.
|
|
void | updatePosition (double dx, double dy) |
| Updates the position of the particle.
|
|
|
double | x |
|
double | y |
| Position of the particle.
|
|
Represents a particle in the 2D simulation box.
◆ Particle()
Particle::Particle |
( |
double | x_init = 0.0, |
|
|
double | y_init = 0.0 ) |
Constructs a Particle with the given initial position.
- Parameters
-
x_init | Initial x-coordinate of the particle. |
y_init | Initial y-coordinate of the particle. |
◆ updatePosition()
void Particle::updatePosition |
( |
double | dx, |
|
|
double | dy ) |
Updates the position of the particle.
- Parameters
-
dx | Displacement in the x-direction. |
dy | Displacement in the y-direction. |
Position of the particle.
The documentation for this class was generated from the following files: