From 55960fb0b4995d08dc14edde21f82c6decef292e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 4 Jun 2019 20:03:08 +0200 Subject: [PATCH] Animation: use float literals everywhere. Makes it easier to copypaste into GLSL ES. --- src/Magnum/Animation/Easing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Animation/Easing.h b/src/Magnum/Animation/Easing.h index a53a2aaef..a932531f7 100644 --- a/src/Magnum/Animation/Easing.h +++ b/src/Magnum/Animation/Easing.h @@ -731,7 +731,7 @@ Combination of @ref circularIn() and @ref circularOut(). @see @ref sineInOut() */ inline Float circularInOut(Float t) { - if(t < 0.5f) return 0.5f*(1.0f - std::sqrt(1.0f - 4*t*t)); + if(t < 0.5f) return 0.5f*(1.0f - std::sqrt(1.0f - 4.0f*t*t)); return 0.5f*(1.0f + std::sqrt(-4.0f*t*t + 8.0f*t - 3.0f)); }