Page MenuHomec4science

particle.cc
No OneTemporary

File Metadata

Created
Wed, Nov 6, 07:31

particle.cc

#include "particle.hh"
void Particle::printself(std::ostream& stream) const {
stream << " " << position;
stream << " " << velocity;
stream << " " << force;
stream << " " << mass;
}
/* -------------------------------------------------------------------------- */
void Particle::initself(std::istream& sstr) {
sstr >> position;
sstr >> velocity;
sstr >> force;
sstr >> mass;
}

Event Timeline