wrap-around world
adjust coordinates to be only in the positive range