function Point(x, y) { this.x = (x !== undefined ? x : 0); this.y = (y !== undefined ? y : 0); }