[expr ] help needed

Hrvoje Radnic via Pd-list <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Dear group,
I cannot figure out why the calculations inside [expr (x*cos(theta))-(y*sin(theta));(x*sin(theta))+(y*cos(theta))] gives me wrong results.
The above mentioned formula for rotation is correct. I initialize the values through [value] object before preforming computation. The initial values are: x=1, y=0, theta=1/2pi. I expect  the new x and new y to be (0,1) respectively after the rotation. But, for some reason, I get (-1,1). I checked the help files for [value] and [expr] and it looks like I am doing everything right. Anyone have an idea where's the mistake?Thank you!Hrvoje Radnic
https://www.instagram.com/singlecycled/

https://pdvrecords.bandcamp.com/album/umovi-protiv-valova
https://soundcloud.com/sumovi-protiv-valova
00385(0)915225162

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/FVTCX5A323GUEEZXZWNLAY5YFNK7GP74/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.