Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ pvon
Function
pvon
recipes/Python/580806_How_Create_PDF_Caustic/recipe-580806.py:21–22 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
19
20
""
"
21
def
pvon(a):
# starting point of one sun ray
22
return
(math.cos(a), math.sin(a))
23
24
def
pbis(a):
# end point of one sun ray
25
return
(math.cos(3*a - math.pi), (math.sin(3*a - math.pi)))
Callers
1
recipe-580806.py
File · 0.85
Calls
2
cos
Method · 0.80
sin
Method · 0.80
Tested by
no test coverage detected