8 lines
124 B
JavaScript
8 lines
124 B
JavaScript
/**
|
|
* @module mumath/lerp
|
|
*/
|
|
'use strict';
|
|
module.exports = function (x, y, a) {
|
|
return x * (1.0 - a) + y * a;
|
|
};
|