Fix a projection issue when computing the tile hash in inside()

cc @gshu