Move point to the util namespace

This commit is contained in:
Danny Robson 2011-08-15 20:11:20 +10:00
parent 712cd39625
commit 6e73c22d91
2 changed files with 10 additions and 7 deletions

View File

@ -22,6 +22,7 @@
#include <cmath>
using namespace std;
using namespace util;
point::point (double _x, double _y):

View File

@ -20,6 +20,7 @@
#ifndef __UTIL_POINT_HPP
#define __UTIL_POINT_HPP
namespace util {
/// A two dimensional position in space
struct point {
double x, y;
@ -29,6 +30,7 @@ struct point {
double distance (const point &) const;
double manhattan (const point &) const;
};
}
#endif // __UTIL_POINT_HPP