ese 519 include files

Dependents:   PROJECT_3D_AUDIO COG4050_adxl355_tilt COG4050_adxl355_tilt COG4050_adxl355_tilt_4050

Committer:
niv17
Date:
Tue Apr 07 21:09:51 2015 +0000
Revision:
0:5347612e39a3
april_7 _ sonic start

Who changed what in which revision?

UserRevisionLine numberNew contents of line
niv17 0:5347612e39a3 1 #ifndef LOCATION_H
niv17 0:5347612e39a3 2 #define LOCATION_H
niv17 0:5347612e39a3 3
niv17 0:5347612e39a3 4 #pragma once
niv17 0:5347612e39a3 5
niv17 0:5347612e39a3 6 #include <stdexcept>
niv17 0:5347612e39a3 7
niv17 0:5347612e39a3 8 using namespace std;
niv17 0:5347612e39a3 9
niv17 0:5347612e39a3 10 class Location {
niv17 0:5347612e39a3 11 float x;
niv17 0:5347612e39a3 12 float y;
niv17 0:5347612e39a3 13 float z;
niv17 0:5347612e39a3 14 public:
niv17 0:5347612e39a3 15 Location () : x(0), y(0), z(0) {}
niv17 0:5347612e39a3 16 Location (float x0, float y0, float z0) : x(x0), y(y0), z(z0) {}
niv17 0:5347612e39a3 17 Location& operator= (const Location&);
niv17 0:5347612e39a3 18 Location& operator+=(const Location&);
niv17 0:5347612e39a3 19 bool operator< (const Location&) const;
niv17 0:5347612e39a3 20 float getX (void) const;
niv17 0:5347612e39a3 21 float getY (void) const;
niv17 0:5347612e39a3 22 float getZ (void) const;
niv17 0:5347612e39a3 23 };
niv17 0:5347612e39a3 24
niv17 0:5347612e39a3 25 #endif