]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/rectangle.h
Redesign the Vector interface
[libs/math.git] / source / geometry / rectangle.h
index 296ba6c936c959dcb94bb0174b2a1457bd23b562..dbebf8ab73d164f20367f37d2da476f39807e6db 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef MSP_GEOMETRY_RECTANGLE_H_
 #define MSP_GEOMETRY_RECTANGLE_H_
 
-#include <msp/linal/vector2.h>
 #include "hyperbox.h"
 
 namespace Msp {
@@ -13,7 +12,7 @@ class Rectangle: public HyperBox<T, 2>
 public:
        Rectangle() { }
        explicit Rectangle(const LinAl::Vector<T, 2> &d): HyperBox<T, 2>(d) { }
-       Rectangle(T w, T h): HyperBox<T, 2>(LinAl::Vector2<T>(w, h)) { }
+       Rectangle(T w, T h): HyperBox<T, 2>(LinAl::Vector<T, 2>(w, h)) { }
 
        T get_width() const { return this->get_dimension(0); }
        T get_height() const { return this->get_dimension(1); }