00001 00032 // description of a class that models the motion of a human head. 00033 // The physics isn't quite right, but it will suffice for right now. 00034 00035 #ifndef LL_HEAD_H 00036 #define LL_HEAD_H 00037 00038 class Head { 00039 public: 00040 00041 Head(); 00042 Head(F32 m, F32 r); 00043 00044 F32 setMass(F32 m); 00045 F32 setRadius(F32 r); 00046 00047 F32 getMass(); 00048 F32 getRadius(); 00049 F32 getInertia(); 00050 00051 void propagate(F32 horizontal_force, F32 vertical_force, F32 dt); 00052 00053 F32 phi, theta; // azimuth and elevation 00054 //struct timeval t; 00055 //struct timezone tz; 00056 00057 private: 00058 F32 mass, radius, inertia; 00059 }; 00060 00061 #endif 00062 00063