def test_90_lon_vector_has_correct_lat_lon_conversion(self): vector = Vector((0, -1, 0)) lat, lon = map.lat_lon_from_vector(vector) self.assertEqual(0, lat) self.assertEqual(radians(-90), lon)
def test_latitude_has_correct_conversion(self): vector = Vector((1, 0, 1)) lat, lon = map.lat_lon_from_vector(vector) self.assertEqual(radians(45), lat)
def test_meridian_vector_has_correct_lat_lon_conversion(self): vector = Vector((1, 0, 0)) lat, lon = map.lat_lon_from_vector(vector) self.assertEqual(0, lat) self.assertEqual(0, lon)