// Particles... #if !defined(__PARTICLES_INCLUDED__) #define __PARTICLES_INCLUDED__ #include #include "Vector.h" // ------------------------------------------------------------ typedef struct { Vector r, p, F; double m; } Particle; // ------------------------------------------------------------ Vector Velocity( Particle P ); Vector CenterOfMass( int N, Particle P[] ); double KineticEnergy( Particle P ); double TotalKineticEnergy( int N, Particle P[] ); void PrintParticle( Particle P ); #endif