ese 519 include files

Dependents:   PROJECT_3D_AUDIO COG4050_adxl355_tilt COG4050_adxl355_tilt COG4050_adxl355_tilt_4050

location.h

Committer:
niv17
Date:
2015-04-07
Revision:
0:5347612e39a3

File content as of revision 0:5347612e39a3:

#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