EulerRange
Struct in Zigurous.Architecture
Implements INumberRange<T>, IRange<T>
Declaration
[Serializable]
public struct EulerRange : INumberRange<float>, IRange<float>
Description
A range of euler values wrapped between -360 and +360.
Static Properties
zero | Shorthand for writing EulerRange(0f, 0f) . |
pi | Shorthand for writing EulerRange(0f, 180f) . |
pi2 | Shorthand for writing EulerRange(0f, 360f) . |
halfRange | Shorthand for writing EulerRange(-180f, 180f) . |
fullRange | Shorthand for writing EulerRange(-360f, 360f) . |
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
EulerRange | Creates a new range with the specified values. |
Methods
Random | Returns a random value in the range. |
Includes | Checks if a value is in the range. |
Clamp | Clamps a value to the range. |
Wrap | Wraps a value within the range. |
Lerp | Linearly interpolates between the range by t . |
InverseLerp | Calculates the linear parameter t that produces the interpolant value within the range. |