Class which represents a particle.
Particle(Eigen::Vector3d &position, Eigen::Vector3d &direction, double energy)
Constructor for the Particle class.
Eigen::Vector3d getDirection() const
Returns the direction of the particle.
void setDirection(const Eigen::Vector3d &newDirection)
Sets the direction of the particle.
bool isPrimary() const
Returns whether or not the particle is primary.
void setEnergy(const double &newEnergy)
Sets the energy of the particle.
bool isTerminated() const
Returns whether or not the particle has terminated.
void move(const double &distance)
Moves the particle by the given distance in the direction of the particle.
void rotate(const double &theta, const double &phi)
Rotates the particle by the given angles with respect to the initial direction of the particle,...
Eigen::Vector3d getPosition() const
Returns the position of the particle.
void setPrimary(bool primary_status)
Sets whether or not the particle is primary.
double getEnergy() const
Returns the energy of the particle.