package.src.interpolate.number.js Maven / Gradle / Ivy
d3.interpolateNumber = d3_interpolateNumber;
function d3_interpolateNumber(a, b) {
a = +a, b = +b;
return function(t) { return a * (1 - t) + b * t; };
}
d3.interpolateNumber = d3_interpolateNumber;
function d3_interpolateNumber(a, b) {
a = +a, b = +b;
return function(t) { return a * (1 - t) + b * t; };
}