Enum Class Ease

java.lang.Object
java.lang.Enum<Ease>
io.github.xrickastley.sevenelements.util.Ease
All Implemented Interfaces:
Serializable, Comparable<Ease>, Constable

public enum Ease extends Enum<Ease>
  • Enum Constant Details

    • LINEAR

      public static final Ease LINEAR
    • IN_SINE

      public static final Ease IN_SINE
    • OUT_SINE

      public static final Ease OUT_SINE
    • IN_OUT_SINE

      public static final Ease IN_OUT_SINE
    • IN_QUAD

      public static final Ease IN_QUAD
    • OUT_QUAD

      public static final Ease OUT_QUAD
    • IN_OUT_QUAD

      public static final Ease IN_OUT_QUAD
    • IN_CUBIC

      public static final Ease IN_CUBIC
    • OUT_CUBIC

      public static final Ease OUT_CUBIC
    • IN_OUT_CUBIC

      public static final Ease IN_OUT_CUBIC
    • IN_QUART

      public static final Ease IN_QUART
    • OUT_QUART

      public static final Ease OUT_QUART
    • IN_OUT_QUART

      public static final Ease IN_OUT_QUART
  • Field Details

  • Constructor Details

  • 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
    • apply

      public double apply(double range)
    • applyLerp

      public double applyLerp(double delta, double start, double end)
    • applyLerpProgress

      public double applyLerpProgress(double value, double start, double end)