export default class Point { x : number ; y : number ; constructor ( x = 0 , y = 0 ) { this . x = x ; this . y = y ; } clone ( ) { return new Point ( this . x , this . y ) ; } moveBy ( dx , dy ) { this . x += dx ; this . y += dy ; } moveTo ( x , y ) { this . x = x ; this . y = y ; } equals ( point ) { return this . x === point . x && this . y === point . y ; } toString ( ) { return "(" + this . x + ", " + this . y + ")" ; } }