UNPKG

@storiny/obelisk

Version:

Build isometrics elements with canvas

15 lines (11 loc) 283 B
export class Point { public x: number; public y: number; constructor(x?: number, y?: number) { this.x = x === undefined ? 0 : x; this.y = y === undefined ? 0 : y; } public toString(): string { return `[Point x: ${this.x}, y: ${this.y}]`; } }