generate-shapes/src/util/geo/Point.h

33 lines
574 B
C
Raw Normal View History

2018-07-06 16:22:06 +02:00
// Copyright 2016, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Patrick Brosi <brosi@informatik.uni-freiburg.de>
#ifndef UTIL_GEO_POINT_H_
#define UTIL_GEO_POINT_H_
#include <set>
#include <vector>
namespace util {
namespace geon {
template <typename T>
class Point {
public:
Point(T x, T y) : _x(x), _y(y) {}
T getX() const { return _x; }
T getY() const { return _y; }
void setX(T x) { _x = x; }
void setY(T y) { _y = y; }
private:
T _x, _y;
};
} // namespace geon
} // namespace util
#endif // UTIL_GEO_POINT_H_