#include <limits>
#include <msp/linal/matrix.h>
-#include <msp/linal/squarematrix.h>
#include <msp/test/test.h>
using namespace std;
class MatrixTests: public Test::RegisteredTest<MatrixTests>
{
private:
- typedef LinAl::SquareMatrix<double, 2> Matrix2d;
+ typedef LinAl::Matrix<double, 2, 2> Matrix2d;
typedef LinAl::Matrix<double, 3, 2> Matrix3x2d;
typedef LinAl::Matrix<double, 2, 3> Matrix2x3d;
- typedef LinAl::SquareMatrix<double, 3> Matrix3d;
+ typedef LinAl::Matrix<double, 3, 3> Matrix3d;
public:
MatrixTests();
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::TransformedShape<double, 2> shape(Geometry::Rectangle<double>(2, 1), Geometry::AffineTransform<double, 2>::rotation(Geometry::Angle<double>::from_degrees(45)));
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::Vector<double, 2>(2.65, 3.35), LinAl::Vector<double, 2>(-1, -1));