Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import builtins
- def smoothstep(min, max, x):
- x = builtins.max(min, builtins.min(x, max))
- t = (x-min)/(max-min)
- return t * t * (3 - 2 * t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement