#ifndef LOCATION_HH #define LOCATION_HH /* Katie Lewis * April 2004 * Note: In codeing this, I referred to code examples from Professor Kuenning * and Matt Gnaizda. * * This class simply captures the concept of a location point in terms of * cartesian coordinates (x,y,z). */ using namespace std; class Location { public: Location(); // constructor ~Location(); // destructor Location(const double&, const double&, // constructor with input const double&); Location& operator=(const Location&); // assignment operator Location(const Location&); // copy constructor const bool operator==(const Location&) const; double distance(const Location&, const Location&); // distance between two // ... points. double distance(const Location&); // distance between two pts double x; double y; double z; }; #endif