INumberRange<T>
Interface in Zigurous.Architecture
Declaration
public interface INumberRange<T> : IRange<T>
Description
A generic interface for a range of number values.
Type Parameters
T | The type of values in the range. |
Properties
Delta | The difference between the maximum and minimum values (Read only). |
Median | The median value of the range (Read only). |
Methods
Random | Returns a random value in the range. |
Clamp | Clamps a value to the range. |
Lerp | Linearly interpolates between the range by t . |
InverseLerp | Calculates the linear parameter t that produces the interpolant value within the range. |
Inherited
Properties
min | The lower bound of the range. |
max | The upper bound of the range. |
Inherited
Methods
Includes | Checks if a value is in the range. |