SHARE
TWEET

scr_linearaverage()

a guest Aug 6th, 2011 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //scr_linearaverage( startvalue , endvalue , ratio )
  2. /*
  3. Where start value is the value returned with a ratio of 0 and end value is returned with a ratio of 1
  4. It's a pretty simple function, but you can combine them with at least two more of the same function to create a nurb-like warp
  5. */
  6.  
  7. //~Jonathan Pearl. No credit neccessary, just don't try to say you made it, because that would be a jerk move. ;)
  8.  
  9. return( argument0 + (argument1-argument0)*argument2 ) ;
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top