Ejemplo n.º 1
0
 public static RampQuintIn getInstance()
 {
     if (INSTANCE == null)
     {
         INSTANCE = new RampQuintIn();
     }
     return(INSTANCE);
 }
Ejemplo n.º 2
0
        public float getRamp(float pSecondsElapsed, float pDuration)
        {
            float percentage = pSecondsElapsed / pDuration;

            if (percentage < 0.5f)
            {
                return(0.5f * RampQuintIn.getValue(2 * percentage));
            }
            else
            {
                return(0.5f + 0.5f * RampQuintOut.getValue(percentage * 2 - 1));
            }
        }
Ejemplo n.º 3
0
 public float getRamp(float pSecondsElapsed, float pDuration)
 {
     return(RampQuintIn.getValue(pSecondsElapsed / pDuration));
 }