MCPcopy 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

32namespace
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

DrawModuleMethod · 0.70
DrawMethod · 0.70
GetStepIndexMethod · 0.70

Calls 1

ofVec2fClass · 0.85

Tested by

no test coverage detected