Simple calculation that for some reason I'm getting very wrong:
def convert_to_vector(r, lat, long): x = r*math.cos(lat)*math.cos(long) y = r*math.cos(lat)*math.sin(long) z = r*math.sin(lat) return x, y, zdef convert_to_lat_long(x, y, z): r = math.sqrt(math.pow(x, 2)+math.pow(y...