vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
206 B

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