Javascript Math interpolate(a, b, t)

Description

Javascript Math interpolate(a, b, t)

Math.interpolate = function(a, b, t) {
 return a + (b-a) * t;
}



PreviousNext

Related