Point2d.js 203 B

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