stroke angle (in 360 degrees)

anamaria's icon

Hi

How do I calculate the angle of a stroke (vector) drawn with a mouse?

See below patch what I am trying to do:

Max Patch
Copy patch and select New From Clipboard in Max.

Macciza's icon

Hi
Just a quick hack - added 'zero' message making output basically relative to click origin
Added '+ 1' to make angle 0 to 360 instead of +/- 180.
Needs something else instead of knob for visualising
Hope it helps
MM