title: Convert local (viewport relative coordinates) to global (layer coordinates)
body: <p>I am trying to convert viewport coordinates to the global(layer) coordinates.</p>
  
  <p>I have tried like described in <a href="http://melonjs.github.io/docs/me.Viewport.html#localToWorld" rel="nofollow">docs</a>, but it seems like doesn't work:</p>
  
  <pre><code>var result= me.game.viewport.localToWorld(x,y, me.game.viewport.AXIS_BOTH);
  </code></pre>
  
  <p>I have, working vise versa combination (converting global to local):</p>
  
  <pre><code>me.event.subscribe("pointerdown", function (event) {
    // convert the given into local (viewport) relative coordinates
    var pos = me.input.globalToLocal(event.clientX, event.clientY);
  });
  </code></pre>
  
  <p>Why I think that me.game.viewport.localToWorld doesn't work?
  Because for my entity I have very big difference in coordinates (like more than 200 points), when clicking on it.</p>
  
  <p>Code snippet:</p>
  
  <pre><code>game.PlayerEntity = me.Entity.extend({
  
      /**
       * constructor
       */
      init:function (x, y, settings)
      {
          var self=this;
          self.leftMouseClicked=false;
          me.event.subscribe("pointerdown", function (event) {
              if(!self.leftMouseClicked) {
                  var result= me.game.viewport.localToWorld(self.pos.x,self.pos.y, me.game.viewport.AXIS_BOTH);
                  console.log(result);
                  console.log(event.clientX);
                  console.log(event.clientY);
                  self.leftMouseClicked=true;
              }
  
          });
  ...
  </code></pre>
  
  <p>So my question is:</p>
  
  <p>How can I convert viewport coordinates to layer one, something similar like we have for converting global to local?</p>