diff --git a/src/Math/Matrix.h b/src/Math/Matrix.h index e5db427ea..badd940a4 100644 --- a/src/Math/Matrix.h +++ b/src/Math/Matrix.h @@ -254,14 +254,14 @@ template T MatrixDeterminant::operator()(con template class MatrixDeterminant<2, T> { public: - constexpr T operator()(const Matrix<2, T>& m) { + constexpr T operator()(const Matrix<2, T>& m) const { return m[0][0]*m[1][1] - m[1][0]*m[0][1]; } }; template class MatrixDeterminant<1, T> { public: - constexpr T operator()(const Matrix<1, T>& m) { + constexpr T operator()(const Matrix<1, T>& m) const { return m[0][0]; } };