|
7 | 7 | /** |
8 | 8 | * Checks if an array can be used as a matrix. |
9 | 9 | * |
10 | | - * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows) have the same length. There must be at least two rows: |
| 10 | + * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows) |
| 11 | + * have the same length. There must be at least two rows. This is an example matrix: |
11 | 12 | * |
12 | 13 | * ``` |
13 | | - * [ |
14 | | - * [ 1, 1, 1, 1, 1, 1 ], |
15 | | - * [ 2, 0, 0, 0, 0, 4 ], |
16 | | - * [ 2, 0, 1, 2, 0, 4 ], |
17 | | - * [ 2, 0, 3, 4, 0, 4 ], |
18 | | - * [ 2, 0, 0, 0, 0, 4 ], |
19 | | - * [ 3, 3, 3, 3, 3, 3 ] |
20 | | - * ] |
| 14 | + * [ |
| 15 | + * [ 1, 1, 1, 1, 1, 1 ], |
| 16 | + * [ 2, 0, 0, 0, 0, 4 ], |
| 17 | + * [ 2, 0, 1, 2, 0, 4 ], |
| 18 | + * [ 2, 0, 3, 4, 0, 4 ], |
| 19 | + * [ 2, 0, 0, 0, 0, 4 ], |
| 20 | + * [ 3, 3, 3, 3, 3, 3 ] |
| 21 | + * ] |
21 | 22 | * ``` |
22 | 23 | * |
23 | 24 | * @function Phaser.Utils.Array.Matrix.CheckMatrix |
24 | 25 | * @since 3.0.0 |
25 | | - * |
| 26 | + * |
26 | 27 | * @generic T |
27 | 28 | * @genericUse {T[][]} - [matrix] |
28 | 29 | * |
|
0 commit comments