trigonometric question

Michele Verità's icon

dear all i have little problem: actually i'm in a little confusion on how to convert x y mouse coordinates to degree (0-360)..for instance like the max dial object behave..(but not the jsui one which convert only y..)
best
mic

pdelges's icon

On 1 mars 07, at 09:59, mic wrote:

> dear all i have little problem: actually i'm in a little confusion on
> how to convert x y mouse coordinates to degree (0-360)..for instance
> like the max dial object behave..(but not the jsui one which convert
> only y..)

Did you ckecked [cartopol]?

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://users.skynet.be/crfmw/max

Michele Verità's icon

yes and there is my confusion (and my shame!): how convert radian float value to degree (0-360)..sorry if it sounds obvious for someone!

Wesley Smith's icon

degree = radian*180/PI

degree may be > 360 or < 0, so you'll have to wrap it within the range with a %

wes

On 3/1/07, mic wrote:
>
> yes and there is my confusion (and my shame!): how convert radian float value to degree (0-360)..sorry if it sounds obvious for someone!
>

pdelges's icon

On 1 mars 07, at 10:32, mic wrote:

>
> yes and there is my confusion (and my shame!): how convert radian
> float value to degree (0-360)..sorry if it sounds obvious for someone!

Look at [cartopol]'s helpfile, on the right of the window: [/ pi]->[*
180] to get (-180 - 180). Adding 180 will give you a (0-360) range.

____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl
http://users.skynet.be/crfmw/max

Michele Verità's icon

thanks a lot!

Matthias Schneider-Hollek's icon

you could also try

tl.objects v. 2.2.0

Am 01.03.2007 um 09:59 schrieb mic:

>
> dear all i have little problem: actually i'm in a little confusion
> on how to convert x y mouse coordinates to degree (0-360)..for
> instance like the max dial object behave..(but not the jsui one
> which convert only y..)
> best
> mic

mit freundlichen Grüßen,

Matthias Schneider-Hollek

digital masters
c/o Musik der Jahrhunderte
Siemensstr. 13
7o469 Stuttgart

studio: xx-49-711-6o7o78o
mobil: 0178-4088162

www.digitalmasters.de
www.hollek.de
www.durbanpoison.info
www.elektrominibarklingelton.de

Matthias Schneider-Hollek's icon

wrong thread, sorry

Am 01.03.2007 um 09:59 schrieb mic:

>
> dear all i have little problem: actually i'm in a little confusion
> on how to convert x y mouse coordinates to degree (0-360)..for
> instance like the max dial object behave..(but not the jsui one
> which convert only y..)
> best
> mic

mit freundlichen Grüßen,

Matthias Schneider-Hollek

digital masters
c/o Musik der Jahrhunderte
Siemensstr. 13
7o469 Stuttgart

studio: xx-49-711-6o7o78o
mobil: 0178-4088162

www.digitalmasters.de
www.hollek.de
www.durbanpoison.info
www.elektrominibarklingelton.de