Module: Moon::Easing::SinusoidalIn

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

Class Method Summary collapse

Class Method Details

.call(k) ⇒ Object


99
100
101
# File 'lib/moon/packages/std/animation/easing.rb', line 99

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