Method: Easing#ease_in_circ

Defined in:
lib/easing.rb

#ease_in_circ(t, b, c, d) ⇒ Object



129
130
131
132
133
# File 'lib/easing.rb', line 129

def ease_in_circ(t, b, c, d)
  t = t.to_f; b = b.to_f; c = c.to_f; d = d.to_f

  return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b
end