[This is preliminary documentation and is subject to change.]
Gets the specified value between the specified minimum and maximum values.
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
public static T Clamp<T>( T value, T minimum, T maximum ) where T : Object, IComparable<T>
Parameters
- value
- Type: T
[Missing <param name="value"/> documentation for "M:Rage.MathHelper.Clamp``1(``0,``0,``0)"]
- minimum
- Type: T
The minimum value. - maximum
- Type: T
The maximum value.
Type Parameters
- T
- The type of the values specified.
Return Value
Type: TThe resulting clamped value.
Exceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] | Thrown if minimum is greater than maximum. |
See Also