LerpingValue<T>
An abstract class in Root.Township, Alta.Utilities.
Base for a value that eases from where it is to a target over time. Call Update each frame and it pushes every step through the setter given to the constructor; subclasses supply the maths.
- Listed in Utilities and other Alta namespaces
- Derived types
AtmosphereColor
Constructors
| Member | What it is |
|---|---|
LerpingValue(Action<T> setValue) | Creates a LerpingValue from setValue. |
Fields
6 private and internal fields
Properties
| Member | What it is |
|---|---|
T Current { get; } | The value last pushed to the setter. |
bool IsLerping { get; private set; } | True while a lerp is running. |