Loading...
Searching...
No Matches
Particle.cpp
Go to the documentation of this file.
#include "Particle.hpp"
Particle::Particle(vec3 r_vec, vec3 v_vec, double q, double m)
{
// Giving the particle its properties
this->r_vec = r_vec;
this->v_vec = v_vec;
this->q = q;
this->m = m;
}
Particle.hpp
A class that holds the properties of a particle.
Particle::r_vec
vec3 r_vec
position
Definition: Particle.hpp:25
Particle::v_vec
vec3 v_vec
velocity
Definition: Particle.hpp:26
Particle::q
double q
Charge.
Definition: Particle.hpp:27
Particle::m
double m
Mass.
Definition: Particle.hpp:28
Particle::Particle
Particle(vec3 r_vec, vec3 v_vec, double q=CA_CHARGE, double m=CA_MASS)
Initialize the particle.
Definition: Particle.cpp:15
vec3
arma::vec::fixed< 3 > vec3
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:23