Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BespokeSynth/BespokeSynth
/ PolToCar
Function
PolToCar
Source/CircleSequencer.cpp:34–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
namespace
33
{
34
ofVec2f PolToCar(float pos, float radius)
35
{
36
return ofVec2f(radius * sin(pos * TWO_PI), radius * -cos(pos * TWO_PI));
37
}
38
39
ofVec2f CarToPol(float x, float y)
40
{
Callers
3
DrawModule
Method · 0.70
Draw
Method · 0.70
GetStepIndex
Method · 0.70
Calls
1
ofVec2f
Class · 0.85
Tested by
no test coverage detected