code: function(x,y) {
      var i, source, base = {x:0, y:0}
  
      // ensure source as object
      source = Array.isArray(x) ?
        {x:x[0], y:x[1]} :
      typeof x === 'object' ?
        {x:x.x, y:x.y} :
      y != null ?
        {x:x, y:y} : base
  
      // merge source
      this.x = source.x
      this.y = source.y
    }
docs: Initialize