UNPKG

tsc-game

Version:
8 lines (6 loc) 176 B
export class Point { constructor(public x: number, public y: number) { } public equals(point: Point): boolean { return this.x === point.x && this.y === point.y; } }