77/**
88 * Provides methods used for getting and setting the transform values of a Game Object.
99 * Should be applied as a mixin and not used directly.
10- *
10+ *
1111 * @name Phaser.GameObjects.Components.MatrixStack
1212 * @since 3.2.0
1313 */
1414
1515var MatrixStack = {
1616
1717 /**
18- * [description]
19- *
18+ * The matrix stack.
19+ *
2020 * @name Phaser.GameObjects.Components.MatrixStack#matrixStack
2121 * @type {Float32Array }
2222 * @private
@@ -25,8 +25,8 @@ var MatrixStack = {
2525 matrixStack : null ,
2626
2727 /**
28- * [description]
29- *
28+ * The current matrix.
29+ *
3030 * @name Phaser.GameObjects.Components.MatrixStack#currentMatrix
3131 * @type {Float32Array }
3232 * @private
@@ -35,8 +35,8 @@ var MatrixStack = {
3535 currentMatrix : null ,
3636
3737 /**
38- * [description]
39- *
38+ * The current index of the top of the matrix stack.
39+ *
4040 * @name Phaser.GameObjects.Components.MatrixStack#currentMatrixIndex
4141 * @type {integer }
4242 * @private
@@ -45,8 +45,8 @@ var MatrixStack = {
4545 currentMatrixIndex : 0 ,
4646
4747 /**
48- * [description]
49- *
48+ * Initialize the matrix stack.
49+ *
5050 * @method Phaser.GameObjects.Components.MatrixStack#initMatrixStack
5151 * @since 3.2.0
5252 *
@@ -62,11 +62,11 @@ var MatrixStack = {
6262 } ,
6363
6464 /**
65- * [description]
66- *
65+ * Push the current matrix onto the matrix stack.
66+ *
6767 * @method Phaser.GameObjects.Components.MatrixStack#save
6868 * @since 3.2.0
69- *
69+ *
7070 * @return {this } This Game Object instance.
7171 */
7272 save : function ( )
@@ -84,16 +84,16 @@ var MatrixStack = {
8484 matrixStack [ currentMatrixIndex + 3 ] = currentMatrix [ 3 ] ;
8585 matrixStack [ currentMatrixIndex + 4 ] = currentMatrix [ 4 ] ;
8686 matrixStack [ currentMatrixIndex + 5 ] = currentMatrix [ 5 ] ;
87-
87+
8888 return this ;
8989 } ,
9090
9191 /**
92- * [description]
93- *
92+ * Pop the top of the matrix stack into the current matrix.
93+ *
9494 * @method Phaser.GameObjects.Components.MatrixStack#restore
9595 * @since 3.2.0
96- *
96+ *
9797 * @return {this } This Game Object instance.
9898 */
9999 restore : function ( )
@@ -117,11 +117,11 @@ var MatrixStack = {
117117 } ,
118118
119119 /**
120- * [description]
121- *
120+ * Resets the current matrix to the identity matrix.
121+ *
122122 * @method Phaser.GameObjects.Components.MatrixStack#loadIdentity
123123 * @since 3.2.0
124- *
124+ *
125125 * @return {this } This Game Object instance.
126126 */
127127 loadIdentity : function ( )
@@ -132,18 +132,18 @@ var MatrixStack = {
132132 } ,
133133
134134 /**
135- * [description]
136- *
135+ * Transform the current matrix.
136+ *
137137 * @method Phaser.GameObjects.Components.MatrixStack#transform
138138 * @since 3.2.0
139139 *
140- * @param {number } a - [description]
141- * @param {number } b - [description]
142- * @param {number } c - [description]
143- * @param {number } d - [description]
144- * @param {number } tx - [description]
145- * @param {number } ty - [description]
146- *
140+ * @param {number } a - The Scale X value.
141+ * @param {number } b - The Shear Y value.
142+ * @param {number } c - The Shear X value.
143+ * @param {number } d - The Scale Y value.
144+ * @param {number } tx - The Translate X value.
145+ * @param {number } ty - The Translate Y value.
146+ *
147147 * @return {this } This Game Object instance.
148148 */
149149 transform : function ( a , b , c , d , tx , ty )
@@ -167,18 +167,18 @@ var MatrixStack = {
167167 } ,
168168
169169 /**
170- * [description]
171- *
170+ * Set a transform matrix as the current matrix.
171+ *
172172 * @method Phaser.GameObjects.Components.MatrixStack#setTransform
173173 * @since 3.2.0
174174 *
175- * @param {number } a - [description]
176- * @param {number } b - [description]
177- * @param {number } c - [description]
178- * @param {number } d - [description]
179- * @param {number } tx - [description]
180- * @param {number } ty - [description]
181- *
175+ * @param {number } a - The Scale X value.
176+ * @param {number } b - The Shear Y value.
177+ * @param {number } c - The Shear X value.
178+ * @param {number } d - The Scale Y value.
179+ * @param {number } tx - The Translate X value.
180+ * @param {number } ty - The Translate Y value.
181+ *
182182 * @return {this } This Game Object instance.
183183 */
184184 setTransform : function ( a , b , c , d , tx , ty )
@@ -196,14 +196,14 @@ var MatrixStack = {
196196 } ,
197197
198198 /**
199- * [description]
200- *
199+ * Translate the current matrix.
200+ *
201201 * @method Phaser.GameObjects.Components.MatrixStack#translate
202202 * @since 3.2.0
203203 *
204- * @param {number } x - [description]
205- * @param {number } y - [description]
206- *
204+ * @param {number } x - The horizontal translation value.
205+ * @param {number } y - The vertical translation value.
206+ *
207207 * @return {this } This Game Object instance.
208208 */
209209 translate : function ( x , y )
@@ -223,14 +223,14 @@ var MatrixStack = {
223223 } ,
224224
225225 /**
226- * [description]
227- *
226+ * Scale the current matrix.
227+ *
228228 * @method Phaser.GameObjects.Components.MatrixStack#scale
229229 * @since 3.2.0
230230 *
231- * @param {number } x - [description]
232- * @param {number } y - [description]
233- *
231+ * @param {number } x - The horizontal scale value.
232+ * @param {number } y - The vertical scale value.
233+ *
234234 * @return {this } This Game Object instance.
235235 */
236236 scale : function ( x , y )
@@ -250,13 +250,13 @@ var MatrixStack = {
250250 } ,
251251
252252 /**
253- * [description]
254- *
253+ * Rotate the current matrix.
254+ *
255255 * @method Phaser.GameObjects.Components.MatrixStack#rotate
256256 * @since 3.2.0
257257 *
258258 * @param {number } t - The angle of rotation, in radians.
259- *
259+ *
260260 * @return {this } This Game Object instance.
261261 */
262262 rotate : function ( t )
0 commit comments