Class Elastic

java.lang.Object
doodlepad.easing.Elastic

public class Elastic extends Object
Robert Penner's easing functions in Java (See https://github.com/jesusgollonet/processing-penner-easing)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    easeIn(double t, double b, double c, double d)
    A function to compute a oscillating back and forth as it eases-in
    static double
    easeInOut(double t, double b, double c, double d)
    A function to compute a oscillating back and forth as it eases-in and as it eases-out.
    static double
    easeOut(double t, double b, double c, double d)
    A function to compute a oscillating back and forth as it eases-out

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Elastic

      public Elastic()
  • Method Details

    • easeIn

      public static double easeIn(double t, double b, double c, double d)
      A function to compute a oscillating back and forth as it eases-in
      Parameters:
      t - Current time
      b - Minimum value
      c - Change in value
      d - Maximum time
      Returns:
      Easing value
    • easeOut

      public static double easeOut(double t, double b, double c, double d)
      A function to compute a oscillating back and forth as it eases-out
      Parameters:
      t - Current time
      b - Minimum value
      c - Change in value
      d - Maximum time
      Returns:
      Easing value
    • easeInOut

      public static double easeInOut(double t, double b, double c, double d)
      A function to compute a oscillating back and forth as it eases-in and as it eases-out.
      Parameters:
      t - Current time
      b - Minimum value
      c - Change in value
      d - Maximum time
      Returns:
      Easing value