From 975ee0405d2d59d203000f5af0540359d1b48960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 26 Jan 2024 20:54:55 +0100 Subject: [PATCH] Math: once again I used a float literal in generic code. This isn't the first time, 0c055ccfe11108af6b0f1d061ddd578bb599b6bc was a recent discovery also. --- src/Magnum/Math/Quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Math/Quaternion.h b/src/Magnum/Math/Quaternion.h index 74ff5e16d..19a6e1c30 100644 --- a/src/Magnum/Math/Quaternion.h +++ b/src/Magnum/Math/Quaternion.h @@ -897,7 +897,7 @@ template Quaternion Quaternion::rotation(const Vector3& normal rotationAxis /= std::sqrt(dot); /* Same as Quaternion::rotation(axis, 180°) */ - return {rotationAxis, 0.0f}; + return {rotationAxis, T(0.0)}; } /* Vectors are not colinear, calculate a rotation axis */