Ejemplo n.º 1
0
    public float ease(float t, float b, float c, float d)
    {
        easeInBounce  easein  = new easeInBounce();
        easeOutBounce easeout = new easeOutBounce();

        if (t < d / 2f)
        {
            return(easein.ease(t * 2f, 0f, c, d) * 0.5f + b);
        }
        return(easeout.ease(t * 2f - d, 0f, c, d) * 0.5f + c * 0.5f + b);
    }
Ejemplo n.º 2
0
 public float ease(float t, float b, float c, float d)
 {
     easeOutBounce ease = new easeOutBounce();
     return c -  ease.ease (d-t, 0f, c, d) + b;
 }
Ejemplo n.º 3
0
    public float ease(float t, float b, float c, float d)
    {
        easeOutBounce ease = new easeOutBounce();

        return(c - ease.ease(d - t, 0f, c, d) + b);
    }
Ejemplo n.º 4
0
    public float ease(float t, float b, float c, float d)
    {
        easeInBounce easein = new easeInBounce();
        easeOutBounce easeout = new easeOutBounce();

        if (t < d/2f) return easein.ease (t*2f, 0f, c, d) * 0.5f + b;
        return easeout.ease (t*2f-d, 0f, c, d) * 0.5f + c*0.5f + b;
    }