1 #ifndef MSP_GEOMETRY_RECTANGLE_H_
2 #define MSP_GEOMETRY_RECTANGLE_H_
10 The two-dimensional special case of a HyperBox. This class exists for
11 convenience only and does not provide any extra functionality over the base
15 class Rectangle: public HyperBox<T, 2>
19 explicit Rectangle(const LinAl::Vector<T, 2> &d): HyperBox<T, 2>(d) { }
20 Rectangle(T w, T h): HyperBox<T, 2>(LinAl::Vector<T, 2>(w, h)) { }
22 T get_width() const { return this->get_dimension(0); }
23 T get_height() const { return this->get_dimension(1); }
26 } // namespace Geometry