DoubleRange
Struct in Zigurous.Architecture
Declaration
[Serializable]
public struct DoubleRangeDescription
A range of double values.
Static Properties
| zero | Shorthand for writing DoubleRange(0.0, 0.0). |
| one | Shorthand for writing DoubleRange(1.0, 1.0). |
| percent | Shorthand for writing DoubleRange(0.0, 1.0). |
| positive | Shorthand for writing DoubleRange(0.0, double.MaxValue). |
| negative | Shorthand for writing DoubleRange(double.MinValue, 0.0). |
| minMax | Shorthand for writing DoubleRange(double.MinValue, double.MaxValue). |
Properties
| min | The lower bound of the range. |
| max | The upper bound of the range. |
| Delta | The difference between the maximum and minimum values (Read only). |
| Median | The median value of the range (Read only). |
Constructors
| DoubleRange | Creates a new range with the specified values. |
Methods
| Includes | Checks if a value is 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. |