Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. clampValue = (value - min) / (max - min);
  2. clippedValue = min(1, max(0, clampValue));
  3. finalValue = clippedValue * scale;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement