]> git.tdb.fi Git - libs/math.git/blobdiff - tests/transformedshape.cpp
Redesign the Vector interface
[libs/math.git] / tests / transformedshape.cpp
index 5468a7330bca8788f63b1bc347528f266e6a5642..540e9b8baa60217497d61d76dd80d2a3ead44fc4 100644 (file)
@@ -23,10 +23,10 @@ TransformedShapeTests::TransformedShapeTests()
 void TransformedShapeTests::ray_intersection()
 {
        Geometry::TransformedShape<double, 2> shape(Geometry::Rectangle<double>(2, 1), Geometry::AffineTransformation<double, 2>::rotation(Geometry::Angle<double>::from_degrees(45)));
-       Geometry::Ray<double, 2> ray(LinAl::Vector2<double>(3, 1.05), LinAl::Vector2<double>(-1, 0));
+       Geometry::Ray<double, 2> ray(LinAl::Vector<double, 2>(3, 1.05), LinAl::Vector<double, 2>(-1, 0));
        EXPECT(shape.check_intersection(ray));
-       ray = Geometry::Ray<double, 2>(LinAl::Vector2<double>(2.65, 3.35), LinAl::Vector2<double>(-1, -1));
+       ray = Geometry::Ray<double, 2>(LinAl::Vector<double, 2>(2.65, 3.35), LinAl::Vector<double, 2>(-1, -1));
        EXPECT(shape.check_intersection(ray));
-       ray = Geometry::Ray<double, 2>(LinAl::Vector2<double>(2.6, 3.4), LinAl::Vector2<double>(-1, -1));
+       ray = Geometry::Ray<double, 2>(LinAl::Vector<double, 2>(2.6, 3.4), LinAl::Vector<double, 2>(-1, -1));
        EXPECT(!shape.check_intersection(ray));
 }