Advertisement
Viraax

Untitled

Jan 21st, 2023
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. import builtins
  2.  
  3. def smoothstep(min, max, x):
  4.     x = builtins.max(min, builtins.min(x, max))
  5.     t = (x-min)/(max-min)
  6.     return t * t * (3 - 2 * t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement