Module: Moon::Easing::SinusoidalInOut

Defined in:
lib/moon/packages/std/animation/easing.rb

Class Method Summary collapse

Class Method Details

.call(k) ⇒ Object


111
112
113
# File 'lib/moon/packages/std/animation/easing.rb', line 111

def self.call(k)
  0.5 * (1 - Math.cos(Math::PI * k))
end