You are on page 1of 1

File: /home/henry/Desktop/python/Particle.

h
// Class automatically generated by Dev-C++ New Class wizard
#ifndef
#define
#define
#define
#define

PARTICLE_H
PARTICLE_H
POSITION_DIM 2
DEFAULT_RADIUS 0.01
DEFAULT_ENERGY 0.0

/*
* No description
*/
class Particle
{
private:
float * position;//represents the position vector
float radius;//radius of the particle;
public:
float energy;//representes the value of the energy
// class constructor
Particle();
//Constructor that initializes the energy of the particle
Particle(float initialEnergy, float particleRadius);
// class destructor
~Particle();
// return a constant vector to position
//this method just allows you to use the values
float * whatsPosition();
void move(float *newPosition);// move the particle to a new position
void changeEnergy(float newEnergy);//changes the energy of the particle
float whatsEnergy();
float whatsIcoordinate(int i);
float whatsRadius();
};
#endif // PARTICLE_H

Page 1 of 1

You might also like