MCPcopy Create free account
hub / github.com/ActiveState/code / Polar2

Function Polar2

recipes/Python/578006_vector/recipe-578006.py:17–20  ·  view source on GitHub ↗
(magnitude, degrees)

Source from the content-addressed store, hash-verified

15################################################################################
16
17def Polar2(magnitude, degrees):
18 x = magnitude * sin(radians(degrees))
19 y = magnitude * cos(radians(degrees))
20 return Vector2(x, y)
21
22################################################################################
23

Callers

nothing calls this directly

Calls 3

sinFunction · 0.85
cosFunction · 0.85
Vector2Class · 0.70

Tested by

no test coverage detected