very basic math question: rotating a line in a circle?

Aug 3, 2012 at 5:26am

very basic math question: rotating a line in a circle?

hi, i want to create a very basic patch using jit.gl.sketch where a line rotates from the center point around a circle (where r=0.8). it’s been years since i took math, and i’m really uncertain of how to calculate my x,y destination coordinates. here is my basic patch. any help is much appreciated.

– Pasted Max Patch, click to expand. –
#63835
Aug 3, 2012 at 6:54am

use poltocar. note i’ve changed your right (angle) slider to send out float values from 0-2pi

– Pasted Max Patch, click to expand. –

and you need to use the trigger object to update the poltocar calculation when changing the angle

#230196
Aug 4, 2012 at 2:03am

perfect! thx terry, interesting to see the use of the cartopol/poltocar objects outside of fft~ processing. i really wish my understanding of math was more thorough.

#230197

You must be logged in to reply to this topic.