File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,6 +177,31 @@ module Phaser {
177177 return this ;
178178 }
179179
180+ /**
181+ * Multiply this vector by the given scalar.
182+ *
183+ * @param {number } scalar
184+ * @return {Vector2 } This for chaining.
185+ */
186+ public mutableMultiplyByScalar ( scalar : number ) : Vector2 {
187+ this . x *= scalar ;
188+ this . y *= scalar ;
189+ return this ;
190+ }
191+
192+ /**
193+ * Divide this vector by the given scalar.
194+ *
195+ * @param {number } scalar
196+ * @return {Vector2 } This for chaining.
197+ */
198+ public mutableDivideByScalar ( scalar : number ) : Vector2 {
199+ this . x /= scalar ;
200+ this . y /= scalar ;
201+ return this ;
202+ }
203+
204+
180205 /**
181206 * Reverse this vector.
182207 *
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ module Phaser {
258258
259259 this . isPlaying = false ;
260260 this . isFinished = true ;
261- // callback
261+ // callback goes here
262262
263263 }
264264
You can’t perform that action at this time.
0 commit comments