changes
This commit is contained in:
parent
80b4922b02
commit
73eb2c16da
7 changed files with 792 additions and 13 deletions
32
src/util/geo/Point.h
Normal file
32
src/util/geo/Point.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue