Class Back

java.lang.Object
doodlepad.easing.Back

public class Back 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 slight overshoot before easing-in
    static double
    easeInOut(double t, double b, double c, double d)
    A function to compute slight retraction before easing-out
    static double
    easeOut(double t, double b, double c, double d)
    A function to compute slight retraction before easing-out followed by a slight overshoot before easing-in.

    Methods inherited from class java.lang.Object

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

    • Back

      public Back()
  • Method Details

    • easeIn

      public static double easeIn(double t, double b, double c, double d)
      A function to compute slight overshoot before easing-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 slight retraction before easing-out followed by a slight overshoot before easing-in.
      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 slight retraction before easing-out
      Parameters:
      t - Current time
      b - Minimum value
      c - Change in value
      d - Maximum time
      Returns:
      Easing value