A vector object with the corresponding translated coordinates
Memberof
input
Example
onMouseEvent : function (pointer) { // convert the given into local (viewport) relative coordinates letpos = me.input.globalToLocal(pointer.clientX, pointer.clientY); // do something with pos ! };
Translate the specified x and y values from the global (absolute) coordinate to local (viewport) relative coordinate.