package org.cocos2d.actions.ease;

import org.cocos2d.actions.interval.IntervalAction;

public class EaseSineIn extends EaseAction {

    public static EaseSineIn action(IntervalAction action) {
        return new EaseSineIn(action);
    }

    protected EaseSineIn(IntervalAction action) {
        super(action);
    }

	@Override
    public EaseSineIn copy() {
        return new EaseSineIn(other.copy());
    }

    @Override
    public void update(float t) {
        other.update(-1 * (float)Math.cos(t * (float) Math.PI / 2) + 1);
    }

    @Override
    public IntervalAction reverse() {
        return new EaseSineOut(other.reverse());
    }


}

