Class Quad

java.lang.Object
doodlepad.easing.Quad

public class Quad 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 quadratic easing-in
    static double
    easeInOut(double t, double b, double c, double d)
    A function to compute a quadratic easing-in and easing-out
    static double
    easeOut(double t, double b, double c, double d)
    A function to compute a quadratic easing-out

    Methods inherited from class java.lang.Object

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

    • Quad

      public Quad()
  • Method Details

    • easeIn

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