File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 */
66
77/**
8- * [description]
8+ * Calculates a linear (interpolation) value over t.
99 *
1010 * @function Phaser.Math.Linear
1111 * @since 3.0.0
1212 *
13- * @param {number } p0 - [description]
14- * @param {number } p1 - [description]
15- * @param {float } t - [description]
13+ * @param {number } p0 - The first point
14+ * @param {number } p1 - The second point
15+ * @param {float } t -The percentage between p0 and p1 to return represented as a number between 0 and 1.
1616 *
17- * @return {number } [description]
17+ * @return {number } The step t% of the way between p0 and p1
1818 */
1919var Linear = function ( p0 , p1 , t )
2020{
Original file line number Diff line number Diff line change 77var Linear = require ( '../Linear' ) ;
88
99/**
10- * [description]
10+ * A Linear Interpolation Method.
1111 *
1212 * @function Phaser.Math.Interpolation.Linear
1313 * @since 3.0.0
14+ * @see https://en.wikipedia.org/wiki/Linear_interpolation
1415 *
15- * @param {float } v - [description]
16- * @param {number } k - [description]
16+ * @param {number[] } v - The input array of values to interpolate between.
17+ * @param {! number } k - The percentage of interploation, between 0 and 1.
1718 *
18- * @return {number } [description]
19+ * @return {! number } The interpolated value.
1920 */
2021var LinearInterpolation = function ( v , k )
2122{
You can’t perform that action at this time.
0 commit comments