Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdaCompNUS/summit
/ lon2x
Function
lon2x
PythonAPI/examples/spawn_imagery.py:52–53 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
50
return
math.log(math.tan(math.pi / 4 + math.radians(a) / 2)) * EARTH_RADIUS
51
52
def
lon2x(a):
53
return
math.radians(a) * EARTH_RADIUS
54
55
def
project(a):
# LatLon -> CARLA coordinates.
56
return
carla.Vector2D(lat2y(a[0]), lon2x(a[1]))
Callers
1
project
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected