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

geometricsound's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

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

geometricsound's icon

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.