diff options
Diffstat (limited to 'src/engine/vector.js')
-rw-r--r-- | src/engine/vector.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/engine/vector.js b/src/engine/vector.js index 452e47b..f596c51 100644 --- a/src/engine/vector.js +++ b/src/engine/vector.js @@ -7,7 +7,6 @@ export class Vector { add(newVector) { this.x += newVector.x this.y += newVector.y - return this } normalize() { @@ -19,13 +18,11 @@ export class Vector { this.x = this.x / Math.abs(this.x) * c this.y = this.y / Math.abs(this.x) * c } - return this } multiply(multiplier) { this.x *= multiplier this.y *= multiplier - return this } clone() { |