Implement Particle constructor

This commit is contained in:
Cory Balaton 2023-09-29 13:53:18 +02:00
parent 245901f502
commit bce50754d4
No known key found for this signature in database
GPG Key ID: 3E5FCEBFD80F432B

View File

@ -18,5 +18,9 @@ Particle::Particle(double q, double m,
arma::vec::fixed<3> r_vec, arma::vec::fixed<3> r_vec,
arma::vec::fixed<3> v_vec) arma::vec::fixed<3> v_vec)
{ {
// Giving the particle its properties
this->q = q;
this->m = m;
this->r_vec = r_vec;
this->v_vec = v_vec;
} }