From d56270835e49865b4c60d7e9c978808d91c2e88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 17 Jul 2012 16:37:07 +0200 Subject: [PATCH] Matrix3 code cleanup. Don't assume the values are float, use T(0) instead of 0.0f. --- src/Math/Matrix3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Math/Matrix3.h b/src/Math/Matrix3.h index a1799dfe3..31eefcf6d 100644 --- a/src/Math/Matrix3.h +++ b/src/Math/Matrix3.h @@ -32,9 +32,9 @@ template class Matrix3: public Matrix<3, T> { /** @copydoc Matrix::Matrix(IdentityType, T) */ inline constexpr explicit Matrix3(typename Matrix<3, T>::IdentityType = (Matrix<3, T>::Identity), T value = T(1)): Matrix<3, T>( - value, 0.0f, 0.0f, - 0.0f, value, 0.0f, - 0.0f, 0.0f, value + value, T(0), T(0), + T(0), value, T(0), + T(0), T(0), value ) {} /** @copydoc Matrix::Matrix(T, U...) */