Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: atan...
From: Nathan Dicken
Date: Thu, 24 Aug 2000 17:29:54 +0100

Miles,

I agree - Flash 5 does it just like JS... However, if you need to do this
in Flash 4 you can use this monster:

Set Variable: "x" = input
Set Variable: "arctan" =
x-((x*x*x)/3)+((x*x*x*x*x)/5)-((x*x*x*x*x*x*x)/7)+((x*x*x*x*x*x*x*x*x)/9)-((
x*x*x*x*x*x*x*x*x*x*x)/11)+((x*x*x*x*x*x*x*x*x*x*x*x*x)/13)-((x*x*x*x*x*x*x*
x*x*x*x*x*x*x*x)/15)+((x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x)/17)-((x*x*x*x*x*x*
x*x*x*x*x*x*x*x*x*x*x*x*x)/19)+((x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x)/
21)-((x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x)/23)
Set Variable: "output" = arctan

Seems kinda of an overkill but it works. You'll have to use it in
conjunction with some other math to provide your input. Hope this helps.

Nathan

-------------------------
Nathan Dicken
Game Developer
Boxerjam Inc.
www.boxerjam.com


At 11:48 AM 8/24/00 -0400, you wrote:
>m i l e s,
>
>Two words: Flash 5.
>
>Just like JS:
>
> Math.atan(x);
>
>In the meantime, maybe someone else can help you with the conversion
>(Branden? Sam?...)
>
>-Randy
>
>m i l e s l i g h t w o o d wrote:
>
>> Hey Folks,
>>
>> My math is a little rusty, and I need atan() in Flash.
>> Is there a way to derive it from cos() or sin()?
>>
>> I'm using FSCommand and JavaScript to access Math.atan() right now, but
>> would like to keep it all inside Flash if at all possible.
>
>--
>'''''' ' ' ' ' ' ' ' ' '
>Randy Kato - Web Master
>Braincraft
>
>627 Broadway, Suite 504, NYC 10012
>T 212.539.1680 F 212.539.1741
>http://www.braincraft.com
>...... . . . . . . . . .
>
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>NudeGuru.com is proud to sponsor the Flasher list
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> IT'S THE ART OF MONEY, HONEY!
> Tips and Advice from some of the most popular Flash
> artists + industry power-brokers on how to hold onto
> your rights, negotiate contracts and get full value
> for your work.http://www.nudeguru.com from Franke James
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: atan..., m i l e s l i g h t w o o

Replies
  FLASH: atan..., m i l e s l i g h t w o o
  Re: FLASH: atan..., Randy Kato

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]