File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 *
2323 * @function Phaser.Utils.Array.Matrix.CheckMatrix
2424 * @since 3.0.0
25+ *
26+ * @generic T
27+ * @genericUse {T[][]} - [matrix]
2528 *
26- * @param {array } matrix - The array to check.
29+ * @param {T[][] } [ matrix] - The array to check.
2730 *
2831 * @return {boolean } `true` if the given `matrix` array is a valid matrix.
2932 */
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ var CheckMatrix = require('./CheckMatrix');
1313 * @function Phaser.Utils.Array.Matrix.MatrixToString
1414 * @since 3.0.0
1515 *
16- * @param {array } matrix - A 2-dimensional array.
16+ * @generic T
17+ * @genericUse {T[][]} - [matrix]
18+ *
19+ * @param {T[][] } [matrix] - A 2-dimensional array.
1720 *
1821 * @return {string } A string representing the matrix.
1922 */
Original file line number Diff line number Diff line change 1010 * @function Phaser.Utils.Array.Matrix.ReverseColumns
1111 * @since 3.0.0
1212 *
13- * @param {array } matrix - The array matrix to reverse the columns for.
13+ * @generic T
14+ * @genericUse {T[][]} - [matrix,$return]
1415 *
15- * @return {array } The column reversed matrix.
16+ * @param {T[][] } [matrix] - The array matrix to reverse the columns for.
17+ *
18+ * @return {T[][] } The column reversed matrix.
1619 */
1720var ReverseColumns = function ( matrix )
1821{
Original file line number Diff line number Diff line change 1010 * @function Phaser.Utils.Array.Matrix.ReverseRows
1111 * @since 3.0.0
1212 *
13- * @param {array } matrix - The array matrix to reverse the rows for.
13+ * @generic T
14+ * @genericUse {T[][]} - [matrix,$return]
1415 *
15- * @return {array } The column reversed matrix.
16+ * @param {T[][] } [matrix] - The array matrix to reverse the rows for.
17+ *
18+ * @return {T[][] } The column reversed matrix.
1619 */
1720var ReverseRows = function ( matrix )
1821{
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ var RotateMatrix = require('./RotateMatrix');
1212 * @function Phaser.Utils.Array.Matrix.Rotate180
1313 * @since 3.0.0
1414 *
15- * @param {array } matrix - The array to rotate.
15+ * @generic T
16+ * @genericUse {T[][]} - [matrix,$return]
1617 *
17- * @return {array } The rotated matrix array. The source matrix should be discard for the returned matrix.
18+ * @param {T[][] } [matrix] - The array to rotate.
19+ *
20+ * @return {T[][] } The rotated matrix array. The source matrix should be discard for the returned matrix.
1821 */
1922var Rotate180 = function ( matrix )
2023{
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ var RotateMatrix = require('./RotateMatrix');
1212 * @function Phaser.Utils.Array.Matrix.RotateLeft
1313 * @since 3.0.0
1414 *
15- * @param {array } matrix - The array to rotate.
15+ * @generic T
16+ * @genericUse {T[][]} - [matrix,$return]
1617 *
17- * @return {array } The rotated matrix array. The source matrix should be discard for the returned matrix.
18+ * @param {T[][] } [matrix] - The array to rotate.
19+ *
20+ * @return {T[][] } The rotated matrix array. The source matrix should be discard for the returned matrix.
1821 */
1922var RotateLeft = function ( matrix )
2023{
Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ var TransposeMatrix = require('./TransposeMatrix');
1818 * @function Phaser.Utils.Array.Matrix.RotateMatrix
1919 * @since 3.0.0
2020 *
21- * @param {array } matrix - The array to rotate.
21+ * @generic T
22+ * @genericUse {T[][]} - [matrix,$return]
23+ *
24+ * @param {T[][] } [matrix] - The array to rotate.
2225 * @param {(number|string) } [direction=90] - The amount to rotate the matrix by.
2326 *
24- * @return {array } The rotated matrix array. The source matrix should be discard for the returned matrix.
27+ * @return {T[][] } The rotated matrix array. The source matrix should be discard for the returned matrix.
2528 */
2629var RotateMatrix = function ( matrix , direction )
2730{
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ var RotateMatrix = require('./RotateMatrix');
1212 * @function Phaser.Utils.Array.Matrix.RotateRight
1313 * @since 3.0.0
1414 *
15- * @param {array } matrix - The array to rotate.
15+ * @generic T
16+ * @genericUse {T[][]} - [matrix,$return]
1617 *
17- * @return {array } The rotated matrix array. The source matrix should be discard for the returned matrix.
18+ * @param {T[][] } [matrix] - The array to rotate.
19+ *
20+ * @return {T[][] } The rotated matrix array. The source matrix should be discard for the returned matrix.
1821 */
1922var RotateRight = function ( matrix )
2023{
Original file line number Diff line number Diff line change 1111 *
1212 * @function Phaser.Utils.Array.Matrix.TransposeMatrix
1313 * @since 3.0.0
14+ *
15+ * @generic T
16+ * @genericUse {T[][]} - [array,$return]
17+ *
18+ * @param {T[][] } [array] - The array matrix to transpose.
1419 *
15- * @param {array } array - The array matrix to transpose.
16- *
17- * @return {array } A new array matrix which is a transposed version of the given array.
20+ * @return {T[][] } A new array matrix which is a transposed version of the given array.
1821 */
1922var TransposeMatrix = function ( array )
2023{
You can’t perform that action at this time.
0 commit comments