more work on util

This commit is contained in:
Patrick Brosi 2018-07-17 19:33:05 +02:00
parent 223ffa6f6b
commit 3af004e49b
4 changed files with 139 additions and 3 deletions

View file

@ -38,6 +38,20 @@ class Box {
Point<T> _ll, _ur;
};
template <typename T>
class RotatedBox {
public:
RotatedBox() : _box() {}
RotatedBox(const Box<T>& box) : _box(box), _deg(0), _center() {}
RotatedBox(const Point<T>& ll, const Point<T>& ur) : _box(ll, ur), _deg(0), _center() {}
private:
Box<T> _box;
double _deg;
Point<T> _center;
};
} // namespace geo
} // namespace util