diff --git a/README.md b/README.md index f45ee40..b62bce7 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -A Simple matrix math library focused on embedded development which avoids and heap memory allocation unless you explicitly ask for it. +This matrix math library is focused on embedded development and avoids any heap memory allocation unless you explicitly ask for it. diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 6cd1373..7bc1975 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -203,11 +203,11 @@ Matrix::Transpose(Matrix &result) const // explicitly define the determinant for a 2x2 matrix because it is definitely // the fastest way to calculate a 2x2 matrix determinant template <> -float Matrix<0, 0>::Det() const { return 1e+6; } +inline float Matrix<0, 0>::Det() const { return 1e+6; } template <> -float Matrix<1, 1>::Det() const { return this->matrix[0]; } +inline float Matrix<1, 1>::Det() const { return this->matrix[0]; } template <> -float Matrix<2, 2>::Det() const +inline float Matrix<2, 2>::Det() const { return this->matrix[0] * this->matrix[3] - this->matrix[1] * this->matrix[2]; }