#include "box.h" #include #include #include #include #include "vector.h" //============================================================== //============================================================== // Class Sphere: //============================================================== //============================================================== //============================================================== // Constructor //============================================================== sphere::sphere() { } //============================================================== // Constructor //============================================================== sphere::sphere(const sphere& s) { i = s.i; x = s.x; v = s.v; cell = s.cell; lutime = s.lutime; nextevent = s.nextevent; nextcollision = s.nextcollision; r = s.r; gr = s.gr; m = s.m; species=s.species; } //============================================================== // Constructor //============================================================== sphere::sphere(int i_i, vector x_i, vector cell_i, double lutime_i, double r_i, double gr_i, double m_i, int species_i): i(i_i), x(x_i), cell(cell_i), lutime(lutime_i), r(r_i), gr(gr_i), m(m_i), species(species_i) { } //============================================================== // Destructor //============================================================== sphere::~sphere() { }