Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/DriveAdapter
/ cast_angle
Function
cast_angle
roach/utils/transforms.py:126–128 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
124
return
np.array(location), np.array(rotation)
125
126
def
cast_angle(x):
127
# cast angle to [-180, +180)
128
return
(x+180.0)%360.0-180.0
Callers
3
_is_at_wrong_lane
Method · 0.90
rot_global_to_ref
Function · 0.85
rot_ref_to_global
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected