From bce50754d401143b9709438d42cc9a9b9c641265 Mon Sep 17 00:00:00 2001 From: Cory Date: Fri, 29 Sep 2023 13:53:18 +0200 Subject: [PATCH] Implement Particle constructor --- src/Particle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Particle.cpp b/src/Particle.cpp index 1bcdb15..acbd62c 100644 --- a/src/Particle.cpp +++ b/src/Particle.cpp @@ -18,5 +18,9 @@ Particle::Particle(double q, double m, arma::vec::fixed<3> r_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; }