Browse Source

Animation: use float literals everywhere.

Makes it easier to copypaste into GLSL ES.
pull/300/head
Vladimír Vondruš 7 years ago
parent
commit
55960fb0b4
  1. 2
      src/Magnum/Animation/Easing.h

2
src/Magnum/Animation/Easing.h

@ -731,7 +731,7 @@ Combination of @ref circularIn() and @ref circularOut().
@see @ref sineInOut() @see @ref sineInOut()
*/ */
inline Float circularInOut(Float t) { 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)); return 0.5f*(1.0f + std::sqrt(-4.0f*t*t + 8.0f*t - 3.0f));
} }

Loading…
Cancel
Save