simplification

This commit is contained in:
Zutatensuppe 2020-11-10 18:48:16 +01:00
parent 1605fdfc99
commit 905946da06
8 changed files with 138 additions and 608 deletions

View file

@ -19,9 +19,4 @@ export default class Point {
this.y - other.y
)
}
distance(other) {
const diffX = this.x - other.x
const diffY = this.y - other.y
return Math.sqrt(diffX * diffX + diffY * diffY)
}
}