]> git.tdb.fi Git - libs/math.git/blobdiff - tests/sphere.cpp
Redesign the Vector interface
[libs/math.git] / tests / sphere.cpp
index 7d9a4bbcf7c7648cfdc144623913a6505a5155f4..71754f6cec7cde1346eaf3edad3f64ec032f9d4f 100644 (file)
@@ -1,5 +1,4 @@
 #include <msp/geometry/circle.h>
-#include <msp/linal/vector2.h>
 #include <msp/test/test.h>
 
 using namespace Msp;
@@ -23,12 +22,12 @@ HyperSphereTests::HyperSphereTests()
 void HyperSphereTests::ray_intersection()
 {
        Geometry::Circle<double> circle(1.5);
-       Geometry::Ray<double, 2> ray(LinAl::Vector2<double>(2.5, 0), LinAl::Vector2<double>(-1, 0));
+       Geometry::Ray<double, 2> ray(LinAl::Vector<double, 2>(2.5, 0), LinAl::Vector<double, 2>(-1, 0));
        EXPECT(circle.check_intersection(ray));
-       ray = Geometry::Ray<double, 2>(LinAl::Vector2<double>(2.5, 0), LinAl::Vector2<double>(1, 0));
+       ray = Geometry::Ray<double, 2>(LinAl::Vector<double, 2>(2.5, 0), LinAl::Vector<double, 2>(1, 0));
        EXPECT(!circle.check_intersection(ray));
-       ray = Geometry::Ray<double, 2>(LinAl::Vector2<double>(2.5, 0), LinAl::Vector2<double>(-4, 2.95));
+       ray = Geometry::Ray<double, 2>(LinAl::Vector<double, 2>(2.5, 0), LinAl::Vector<double, 2>(-4, 2.95));
        EXPECT(circle.check_intersection(ray));
-       ray = Geometry::Ray<double, 2>(LinAl::Vector2<double>(2.5, 0), LinAl::Vector2<double>(-4, 3.05));
+       ray = Geometry::Ray<double, 2>(LinAl::Vector<double, 2>(2.5, 0), LinAl::Vector<double, 2>(-4, 3.05));
        EXPECT(!circle.check_intersection(ray));
 }