ese 519 include files
Dependents: PROJECT_3D_AUDIO COG4050_adxl355_tilt COG4050_adxl355_tilt COG4050_adxl355_tilt_4050
Diff: location.h
- Revision:
- 0:5347612e39a3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/location.h Tue Apr 07 21:09:51 2015 +0000 @@ -0,0 +1,25 @@ +#ifndef LOCATION_H +#define LOCATION_H + +#pragma once + +#include <stdexcept> + +using namespace std; + +class Location { + float x; + float y; + float z; +public: + Location () : x(0), y(0), z(0) {} + Location (float x0, float y0, float z0) : x(x0), y(y0), z(z0) {} + Location& operator= (const Location&); + Location& operator+=(const Location&); + bool operator< (const Location&) const; + float getX (void) const; + float getY (void) const; + float getZ (void) const; +}; + +#endif \ No newline at end of file