sx = function(vx) -- turn viewport coordinates into surface coordinates return iscale(vx) + Viewport.x end