ese 519 include files
Dependents: PROJECT_3D_AUDIO COG4050_adxl355_tilt COG4050_adxl355_tilt COG4050_adxl355_tilt_4050
Diff: velocity.h
- Revision:
- 0:5347612e39a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/velocity.h Tue Apr 07 21:09:51 2015 +0000 @@ -0,0 +1,24 @@ +#ifndef VELOCITY_H +#define VELOCITY_H + +#pragma once + +#include <stdexcept> + +using namespace std; + +class Velocity { + float dx; + float dy; + float dz; +public: + Velocity () : dx(0), dy(0), dz(0) {} + Velocity (float dx0, float dy0, float dz0) : dx(dx0), dy(dy0), dz(dz0) {} + Velocity& operator= (const Velocity&); + Velocity& operator+=(const Velocity&); + bool operator< (const Velocity&) const; + float getdX (void) const; + float getdY (void) const; + float getdZ (void) const; +}; +#endif \ No newline at end of file