Class MinMaxFloat
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Class for representing a bounded range.
[Version(1, 2, 0)]
[Serializable]
public class MinMaxFloat
- Inheritance
-
MinMaxFloat
- Inherited Members
- Extension Methods
Constructors
Fields
Methods
- Clamp(float)
Clamps the value to the range [min, max].
- InverseLerp(float)
Calculates the inverse linear interpolation between min and max, that is the parameter t such that Lerp(t) = value.
- Lerp(float)
Calculates the linear interpolation between min and max.
- LerpUnclamped(float)
Calculates the linear interpolation between min and max without clamping the t parameter.