Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/AirtestProject/Poco
/ from_radian
Method
from_radian
poco/utils/vector.py:18–21 ·
view source on GitHub ↗
(rad)
Source
from the content-addressed store, hash-verified
16
17
@staticmethod
18
def
from_radian(rad):
19
x = math.cos(rad)
20
y = math.sin(rad)
21
return
Vec2(x, y)
22
23
def
__add__(self, other):
24
return
Vec2(self.x + other.x, self.y + other.y)
Callers
nothing calls this directly
Calls
1
Vec2
Class · 0.85
Tested by
no test coverage detected