Skip to content

Commit 0fdb7fc

Browse files
committed
Documented SinCosTableGenerator and a few more easing parameters.
1 parent 652b7b0 commit 0fdb7fc

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/math/SinCosTableGenerator.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
/**
88
* @typedef {object} SinCosTable
99
*
10-
* @property {number} sin - [description]
11-
* @property {number} cos - [description]
12-
* @property {number} length - [description]
10+
* @property {number} sin - The sine value.
11+
* @property {number} cos - The cosine value.
12+
* @property {number} length - The length.
1313
*/
1414

1515
/**
16-
* [description]
16+
* Generate a series of sine and cosine values.
1717
*
1818
* @function Phaser.Math.SinCosTableGenerator
1919
* @since 3.0.0
2020
*
21-
* @param {number} length - [description]
22-
* @param {number} sinAmp - [description]
23-
* @param {number} cosAmp - [description]
24-
* @param {number} frequency - [description]
21+
* @param {number} length - The number of values to generate.
22+
* @param {number} [sinAmp=1] - The sine value amplitude.
23+
* @param {number} [cosAmp=1] - The cosine value amplitude.
24+
* @param {number} [frequency=1] - The frequency of the values.
2525
*
26-
* @return {SinCosTable} [description]
26+
* @return {SinCosTable} The generated values.
2727
*/
2828
var SinCosTableGenerator = function (length, sinAmp, cosAmp, frequency)
2929
{

src/math/easing/back/In.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {number} [overshoot=1.70158] - [description]
14+
* @param {number} [overshoot=1.70158] - The overshoot amount.
1515
*
1616
* @return {number} The tweened value.
1717
*/

src/math/easing/back/InOut.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {number} [overshoot=1.70158] - [description]
14+
* @param {number} [overshoot=1.70158] - The overshoot amount.
1515
*
1616
* @return {number} The tweened value.
1717
*/

src/math/easing/back/Out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {number} [overshoot=1.70158] - [description]
14+
* @param {number} [overshoot=1.70158] - The overshoot amount.
1515
*
1616
* @return {number} The tweened value.
1717
*/

src/math/easing/elastic/In.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {float} [amplitude=0.1] - [description]
14+
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
1515
* @param {float} [period=0.1] - [description]
1616
*
1717
* @return {number} The tweened value.

src/math/easing/elastic/InOut.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {float} [amplitude=0.1] - [description]
14+
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
1515
* @param {float} [period=0.1] - [description]
1616
*
1717
* @return {number} The tweened value.

src/math/easing/elastic/Out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {float} [amplitude=0.1] - [description]
14+
* @param {float} [amplitude=0.1] - The amplitude of the elastic ease.
1515
* @param {float} [period=0.1] - [description]
1616
*
1717
* @return {number} The tweened value.

src/math/easing/stepped/Stepped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @since 3.0.0
1212
*
1313
* @param {number} v - The value to be tweened.
14-
* @param {float} [steps=1] - [description]
14+
* @param {number} [steps=1] - The number of steps in the ease.
1515
*
1616
* @return {number} The tweened value.
1717
*/

0 commit comments

Comments
 (0)