Class Easing.Elastic

java.lang.Object
team.lodestar.lodestone.systems.easing.Easing
team.lodestar.lodestone.systems.easing.Easing.Elastic
Direct Known Subclasses:
Easing.ElasticIn, Easing.ElasticInOut, Easing.ElasticOut
Enclosing class:
Easing

public abstract static class Easing.Elastic extends Easing
A base class for elastic easings.
  • Constructor Details

    • Elastic

      public Elastic(String name, float amplitude, float period)
      Creates a new Elastic easing with the specified settings.
      Parameters:
      amplitude - the amplitude for the elastic function
      period - the period for the elastic function
    • Elastic

      public Elastic(String name)
      Creates a new Elastic easing with default settings (-1f, 0f).
  • Method Details

    • getPeriod

      public float getPeriod()
      Returns the period.
      Returns:
      the period for this easing
    • setPeriod

      public void setPeriod(float period)
      Sets the period to the given value.
      Parameters:
      period - the new period
    • getAmplitude

      public float getAmplitude()
      Returns the amplitude.
      Returns:
      the amplitude for this easing
    • setAmplitude

      public void setAmplitude(float amplitude)
      Sets the amplitude to the given value.
      Parameters:
      amplitude - the new amplitude