Enum Class Ease

java.lang.Object
java.lang.Enum<Ease>
dev.kosmx.playerAnim.core.util.Ease
All Implemented Interfaces:
Serializable, Comparable<Ease>, Constable

public enum Ease extends Enum<Ease>
Easings form easings.net
+ constant + linear
  • Enum Constant Details

    • LINEAR

      public static final Ease LINEAR
    • CONSTANT

      public static final Ease CONSTANT
    • INSINE

      public static final Ease INSINE
    • OUTSINE

      public static final Ease OUTSINE
    • INOUTSINE

      public static final Ease INOUTSINE
    • INCUBIC

      public static final Ease INCUBIC
    • OUTCUBIC

      public static final Ease OUTCUBIC
    • INOUTCUBIC

      public static final Ease INOUTCUBIC
    • INQUAD

      public static final Ease INQUAD
    • OUTQUAD

      public static final Ease OUTQUAD
    • INOUTQUAD

      public static final Ease INOUTQUAD
    • INQUART

      public static final Ease INQUART
    • OUTQUART

      public static final Ease OUTQUART
    • INOUTQUART

      public static final Ease INOUTQUART
    • INQUINT

      public static final Ease INQUINT
    • OUTQUINT

      public static final Ease OUTQUINT
    • INOUTQUINT

      public static final Ease INOUTQUINT
    • INEXPO

      public static final Ease INEXPO
    • OUTEXPO

      public static final Ease OUTEXPO
    • INOUTEXPO

      public static final Ease INOUTEXPO
    • INCIRC

      public static final Ease INCIRC
    • OUTCIRC

      public static final Ease OUTCIRC
    • INOUTCIRC

      public static final Ease INOUTCIRC
    • INBACK

      public static final Ease INBACK
    • OUTBACK

      public static final Ease OUTBACK
    • INOUTBACK

      public static final Ease INOUTBACK
    • INELASTIC

      public static final Ease INELASTIC
    • OUTELASTIC

      public static final Ease OUTELASTIC
    • INOUTELASTIC

      public static final Ease INOUTELASTIC
    • INBOUNCE

      public static final Ease INBOUNCE
    • OUTBOUNCE

      public static final Ease OUTBOUNCE
    • INOUTBOUNCE

      public static final Ease INOUTBOUNCE
    • CATMULLROM

      public static final Ease CATMULLROM
    • STEP

      public static final Ease STEP
  • Method Details

    • values

      public static Ease[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Ease valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • invoke

      public float invoke(float f)
      Run the easing
      Parameters:
      f - float between 0 and 1
      Returns:
      ease(f)
    • invoke

      public float invoke(float t, Float n)
      Run the easing
      Parameters:
      t - float between 0 and 1
      n - float easing argument
      Returns:
      ease(t, n)
    • getEase

      public static Ease getEase(byte b)
    • easeIn

      public static Function<Float,Float> easeIn(Function<Float,Float> function)
    • easeOut

      public static Function<Float,Float> easeOut(Function<Float,Float> function)
    • easeInOut

      public static Function<Float,Float> easeInOut(Function<Float,Float> function)