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
A base class for elastic easings.
-
Nested Class Summary
Nested classes/interfaces inherited from class team.lodestar.lodestone.systems.easing.Easing
Easing.Back, Easing.BackIn, Easing.BackInOut, Easing.BackOut, Easing.Elastic, Easing.ElasticIn, Easing.ElasticInOut, Easing.ElasticOut -
Field Summary
Fields inherited from class team.lodestar.lodestone.systems.easing.Easing
BACK_IN, BACK_IN_OUT, BACK_OUT, BOUNCE_IN, BOUNCE_IN_OUT, BOUNCE_OUT, CIRC_IN, CIRC_IN_OUT, CIRC_OUT, CODEC, CUBIC_IN, CUBIC_IN_OUT, CUBIC_OUT, EASINGS, ELASTIC_IN, ELASTIC_IN_OUT, ELASTIC_OUT, EXPO_IN, EXPO_IN_OUT, EXPO_OUT, LINEAR, name, QUAD_IN, QUAD_IN_OUT, QUAD_OUT, QUARTIC_IN, QUARTIC_IN_OUT, QUARTIC_OUT, QUINTIC_IN, QUINTIC_IN_OUT, QUINTIC_OUT, SINE_IN, SINE_IN_OUT, SINE_OUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the amplitude.floatReturns the period.voidsetAmplitude(float amplitude) Sets the amplitude to the given value.voidsetPeriod(float period) Sets the period to the given value.
-
Constructor Details
-
Elastic
Creates a new Elastic easing with the specified settings.- Parameters:
amplitude- the amplitude for the elastic functionperiod- the period for the elastic function
-
Elastic
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
-