more work on util
This commit is contained in:
parent
223ffa6f6b
commit
3af004e49b
4 changed files with 139 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue