Forums > Jitter

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


Aug 03 2012 | 5:26 am

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. --

Aug 03 2012 | 6:54 am

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

Aug 04 2012 | 2:03 am

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.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter