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 value to clmap
the min value to clamp to (default: 0)
the max value to clamp to (default: 1)
the clamped value
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.