where x and y are in metres