Main Page | Class List | Directories | File List | Class Members | File Members

particle.h

00001 /*
00002  * Physically Based Simulation, SS 2005
00003  *
00004  * Markus Liechti (liechtim@student.ethz.ch)
00005  * Yoshimi Takano (yoshi@student.ethz.ch)
00006  * Stefan Wismer (swismer@student.ethz.ch)
00007  *
00008  * $Id: particle.h,v 1.6 2005/06/26 20:21:19 ytakano Exp $
00009  */
00010 
00011 #ifndef __particle_H__
00012 #define __particle_H__
00013 
00014 #include "vector2.h"
00015 
00019 struct Particle {
00021         Particle() {}
00022 
00030         Particle(component m, vector2 p, vector2 v, component l):
00031                 age(0.0), lifetime(l), mass(m), position(p), velocity(v) {}
00032 
00034         component age;
00035 
00037         component lifetime;
00038 
00040         component mass;
00041 
00043         vector2 position;
00044 
00046         vector2 velocity;
00047 
00049         vector2 force;
00050 };
00051 
00052 #endif

Generated on Sun Jul 10 22:32:04 2005 for S12 by  doxygen 1.4.2