UNPKG

203 BJavaScriptView Raw
1/**
2 * @prototype Point2d
3 * @param {number} [x]
4 * @param {number} [y]
5 */
6function Point2d (x, y) {
7 this.x = x !== undefined ? x : 0;
8 this.y = y !== undefined ? y : 0;
9}
10
11module.exports = Point2d;