Clamp
Description
Clamp
is a Function
on Math
Returns the given value, but with a minimum of the given min, and a maximum of the given max. Returns the given value but clamped.
Example
local testVariable = Math.Clamp(1.0, 1.0, 1.0)
Usage
network usage: Any (Client or Server/Host)
returns: float
parameters:
- value (float)
- min (float)
- max (float)