remove obsolete file
This commit is contained in:
parent
15ff3ecd15
commit
f1625b75ff
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
||||||
export default class Point {
|
|
||||||
constructor(x,y) {
|
|
||||||
this.x = x
|
|
||||||
this.y = y
|
|
||||||
}
|
|
||||||
move(x, y) {
|
|
||||||
this.x += x
|
|
||||||
this.y += y
|
|
||||||
}
|
|
||||||
add(other) {
|
|
||||||
return new Point(
|
|
||||||
this.x + other.x,
|
|
||||||
this.y + other.y
|
|
||||||
)
|
|
||||||
}
|
|
||||||
sub(other) {
|
|
||||||
return new Point(
|
|
||||||
this.x - other.x,
|
|
||||||
this.y - other.y
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue