1 #ifndef MSP_GEOMETRY_RECTANGLE_H_
2 #define MSP_GEOMETRY_RECTANGLE_H_
4 #include <msp/linal/vector2.h>
11 class Rectangle: public HyperBox<T, 2>
15 explicit Rectangle(const LinAl::Vector<T, 2> &d): HyperBox<T, 2>(d) { }
16 Rectangle(T w, T h): HyperBox<T, 2>(LinAl::Vector2<T>(w, h)) { }
18 T get_width() const { return this->get_dimension(0); }
19 T get_height() const { return this->get_dimension(1); }
22 } // namespace Geometry