Class Easing.Back

java.lang.Object
team.lodestar.lodestone.systems.easing.Easing
team.lodestar.lodestone.systems.easing.Easing.Back
Direct Known Subclasses:
Easing.BackIn, Easing.BackInOut, Easing.BackOut
Enclosing class:
Easing

public abstract static class Easing.Back extends Easing
A base class for Back easings.
  • Field Details

    • DEFAULT_OVERSHOOT

      public static final float DEFAULT_OVERSHOOT
      The default overshoot is 10% (1.70158).
      See Also:
  • Constructor Details

    • Back

      public Back(String name)
      Creates a new Back instance with the default overshoot (1.70158).
    • Back

      public Back(String name, float overshoot)
      Creates a new Back instance with the specified overshoot.
      Parameters:
      overshoot - the amount to overshoot by -- higher number means more overshoot and an overshoot of 0 results in cubic easing with no overshoot
  • Method Details

    • setOvershoot

      public void setOvershoot(float overshoot)
      Sets the overshoot to the given value.
      Parameters:
      overshoot - the new overshoot
    • getOvershoot

      public float getOvershoot()
      Returns the overshoot for this easing.
      Returns:
      this easing's overshoot