]> git.tdb.fi Git - libs/math.git/blobdiff - tests/box.cpp
Redesign the Vector interface
[libs/math.git] / tests / box.cpp
index 860bb4e511a059ab3fd5c3340c8fc1785dd4d109..4e49927df0d339f415d18a827621878ef51cf7a8 100644 (file)
@@ -1,5 +1,4 @@
 #include <msp/geometry/box.h>
-#include <msp/linal/vector3.h>
 #include <msp/test/test.h>
 
 using namespace Msp;
@@ -23,12 +22,12 @@ HyperBoxTests::HyperBoxTests()
 void HyperBoxTests::ray_intersection()
 {
        Geometry::Box<double> box(2, 4, 3);
-       Geometry::Ray<double, 3> ray(LinAl::Vector3<double>(10, 0, 0), LinAl::Vector3<double>(-1, 0, 0));
+       Geometry::Ray<double, 3> ray(LinAl::Vector<double, 3>(10, 0, 0), LinAl::Vector<double, 3>(-1, 0, 0));
        EXPECT(box.check_intersection(ray));
-       ray = Geometry::Ray<double, 3>(LinAl::Vector3<double>(10, 0, 0), LinAl::Vector3<double>(1, 0, 0));
+       ray = Geometry::Ray<double, 3>(LinAl::Vector<double, 3>(10, 0, 0), LinAl::Vector<double, 3>(1, 0, 0));
        EXPECT(!box.check_intersection(ray));
-       ray = Geometry::Ray<double, 3>(LinAl::Vector3<double>(9, 0, 11.45), LinAl::Vector3<double>(-1, 0, -1));
+       ray = Geometry::Ray<double, 3>(LinAl::Vector<double, 3>(9, 0, 11.45), LinAl::Vector<double, 3>(-1, 0, -1));
        EXPECT(box.check_intersection(ray));
-       ray = Geometry::Ray<double, 3>(LinAl::Vector3<double>(9, 0, 11.55), LinAl::Vector3<double>(-1, 0, -1));
+       ray = Geometry::Ray<double, 3>(LinAl::Vector<double, 3>(9, 0, 11.55), LinAl::Vector<double, 3>(-1, 0, -1));
        EXPECT(!box.check_intersection(ray));
 }