Skip to content

Commit 67bf221

Browse files
committed
Updates
1 parent 94add2e commit 67bf221

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Phaser/geom/Vector2.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

Phaser/system/animation/Animation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)