Exemplo n.º 1
0
        public BaseSingleSpanModifier(double duration, double fromValue, double toValue, IInterpolation function)
            : base(duration)
        {
            this.Duration  = duration;
            this.valueSpan = toValue - fromValue;
            this.fromValue = fromValue;

            this.function = function;
            if (function == null)
            {
                this.function = LinearFuntion.Instance();
            }
        }
Exemplo n.º 2
0
        //================================================================
        //Constants
        //================================================================

        //================================================================
        //Fields
        //================================================================

        //================================================================
        //Constructors
        //================================================================
        public AlphaModifier(double duration, double fromX, double toX)
            : this(duration, fromX, toX, null, LinearFuntion.Instance())
        {
        }
Exemplo n.º 3
0
        //================================================================
        //Constants
        //================================================================

        //================================================================
        //Fields
        //================================================================

        //================================================================
        //Constructors
        //================================================================
        public MoveYModifier(double duration, double fromY, double toY)
            : this(duration, fromY, toY, null, LinearFuntion.Instance())
        {
        }