Atan2 takes 2

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Atan2 takes 2

Post by chkman »

The atan2 function takes two arguments. Are you listening JayPro? Some of the flowfields that you were so gracious to help me with used atan2 with only one arg. I changed most of them to just atan. One I had to supply the 2nd arg to make it look as before.

A couple of my original ones still aren't working. It might have something to do with flor or mod. I am waiting on word from The Man.

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Post by JayPro »

If you recall, I advised you that in some of your fields, you had "mod", wich is represented in GF code with a "%" sign.

I really don't think "flor" makes too big a difference in the overall look of a field, so that might not be the issue.

Being math-challenged, I can't vouch for the atan/atan2 hair-splitting stuff, save to say that in my limited experience with atan2, it requires careful implementation.

I believe Rovastar can regale you with a lot more details there.
"God is syntax."

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

You advised me well, I should have heeded.
It's % now and working again, thanks, JayPro.

Rovastar
Posts: 295
Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England

Post by Rovastar »

Yes atan2 now takes 2 variables.

I would advise on not using the temp fix of the old atan2. It really didn't do anything too useful and nothing that could be done already with the atan command and calculation or two.

ANd now we have proper version that takes 2 inpputs. :)

For more info see this thread where it all started:

http://forums.soundspectrum.com/viewtop ... ight=atan2

Also

? Has the Flor command been removed?

I use this in many of my scenes to get integer values.

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

The flor seems to work. I took a flow and used it to zero out a couple numbers and it did look different.

Post Reply