Returns the value itself if it's between min and max. Returns min if the value is lower than min. Returns max if the value is greater than max.
the clamped value
the value to clmap
Optional
the min value to clamp to (default: 0)
the max value to clamp to (default: 1)
Returns the value itself if it's between min and max. Returns min if the value is lower than min. Returns max if the value is greater than max.
Returns
the clamped value