clamp and wrap

what is the difference between clamp and wrap?

Clamp does just that. If it’s below 0.0, it’ll return 0.0. If it’s higher than 1.0, it’ll return 1.0. If it’s in between, it’ll return the original value.

With wrap, I think it just wraps around, but a catch as that the Min and Max value are essentially the same value for the purposes of wrapping around. For example, if you had 2.0, it would return 1.0.

Either one will return values between 0.0 and 1.0. How it picks the value when it is outside the range is different.