Method Clamp
Clamp(TValueType, THandleValueType, THandleValueType)
Utility method to clamp a TValueType
value between specified bounds.
Declaration
protected abstract TValueType Clamp(TValueType v, THandleValueType lowBound, THandleValueType highBound)
Parameters
Type | Name | Description |
---|---|---|
TValueType | v | The value to clamp. |
THandleValueType | lowBound | Minimum |
THandleValueType | highBound | Maximum |
Returns
Type | Description |
---|---|
TValueType | The clamped value. |