Search found 1 match

by Descaii
Sat Sep 08, 2018 11:35 am
Forum: Support and Development
Topic: math.clamp?
Replies: 18
Views: 34701

Re: math.clamp?

Code: Select all

function clamp(v,a,b)
    return (v < a and a) or (v > b and b) or v
end