MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / project

Function project

PythonAPI/examples/spawn_imagery.py:55–56  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

53 return math.radians(a) * EARTH_RADIUS
54
55def project(a): # LatLon -> CARLA coordinates.
56 return carla.Vector2D(lat2y(a[0]), lon2x(a[1]))
57
58def spawn_imagery(client, zoom, min_lat, min_lon, max_lat, max_lon, offset):
59 bottom_left_id = deg2num(zoom, min_lat, min_lon)

Callers 1

spawn_imageryFunction · 0.85

Calls 3

lat2yFunction · 0.85
lon2xFunction · 0.85
Vector2DMethod · 0.80

Tested by

no test coverage detected