summaryrefslogtreecommitdiff
path: root/src/engine/vector2.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/vector2.js')
-rw-r--r--src/engine/vector2.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/vector2.js b/src/engine/vector2.js
index 8b10e28..0cf2217 100644
--- a/src/engine/vector2.js
+++ b/src/engine/vector2.js
@@ -4,17 +4,17 @@ export class Vector2 {
this.y = y
}
- static sum(a, b) {
+ static sum(vector_a, vector_b) {
return new Vector2(
- a.x + b.x,
- a.y + b.y,
+ vector_a.x + vector_b.x,
+ vector_a.y + vector_b.y,
)
}
- static equals(a, b) {
+ static equals(vector_a, vector_b) {
if (
- a.x == b.x &&
- a.y == b.y
+ vector_a.x == vector_b.x &&
+ vector_a.y == vector_b.y
) {
return true
}