Math and Computation

Parametric Functions

Downloadbias(b,t)   Returns a value t shifted towards 0 or 1 by a certain degree b resulting in a power curve. Downloadbias_fast(b,t)   Returns a value t shifted towards 0 or 1 by a certain degree b resulting in a power curve. Downloadboxstep(a,b,t)   Returns a value from 0 to 1 depending on the position of value t between values a and b. Downloadclamp(t,a,b)   Returns a value t constrained by upper and lower bounds a and b. Downloadgain(g,t)   Returns a value t shifted towards 0 or 1 by a certain degree g resulting in an S-curve. Downloadgain_fast(g,t)   Returns a value t shifted towards 0 or 1 by a certain degree g resulting in an S-curve. Downloadgammacorrect(gamma,t)   Returns a value t shifted upwards or downwards depending on the given gamma value. Downloadlerp(t,a,b)   Returns a value linearly interpolated from a to b governed by parameter t. Downloadpulse(a,b,t)   Returns 1 if t is between a and b inclusive, 0 otherwise. Downloadsmoothstep(a,b,t)   Returns a smooth transition from 0 to 1 when t is between a and b. Downloadspline(t,nknots,knotarray)   Returns a value at t along a spline defined by an array of knots. Downloadspline4(t,knot0,knot1,knot2,knot3)   Returns a value at t along a spline defined by four knots. Downloadstep(a,t)   Returns 0 wthen t is less than a, 1 otherwise.

Comments? Click to Comment