Klasse Easing.Elastic

java.lang.Object
de.luckymcdev.foundryengine.common.easing.Easing
de.luckymcdev.foundryengine.common.easing.Easing.Elastic
Bekannte direkte Unterklassen:
Easing.ElasticIn, Easing.ElasticInOut, Easing.ElasticOut
Umschließende Klasse:
Easing

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

    • Elastic

      public Elastic(String name, float amplitude, float period)
      Creates a new Elastic easing with the specified settings.
      Parameter:
      name - the name of this easing
      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).
      Parameter:
      name - the name of this easing
  • Methodendetails

    • getPeriod

      public float getPeriod()
      Returns the period.
      Gibt zurück:
      the period for this easing
    • setPeriod

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

      public float getAmplitude()
      Returns the amplitude.
      Gibt zurück:
      the amplitude for this easing
    • setAmplitude

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