1 #ifndef MSP_GEOMETRY_RECTANGLE_H_
2 #define MSP_GEOMETRY_RECTANGLE_H_
10 class Rectangle: public HyperBox<T, 2>
14 explicit Rectangle(const LinAl::Vector<T, 2> &d): HyperBox<T, 2>(d) { }
15 Rectangle(T w, T h): HyperBox<T, 2>(LinAl::Vector<T, 2>(w, h)) { }
17 T get_width() const { return this->get_dimension(0); }
18 T get_height() const { return this->get_dimension(1); }
21 } // namespace Geometry