Math.atan && Math.atan2

• 06-23-2005, 04:45 PM
gabi_poa
Math.atan && Math.atan2
Can someone please expplain to me what does Math.atan2 and Math.atan returns? I made a file to try to understand, but I cant figure out what they do!!!
I saw a lot o fo files wich use those actions, but still couldnt understand.
• 06-24-2005, 03:34 PM
R1TAL1N
in trigonometry, tangent(tan) is the measure of the angle adjacent to the angle u want to find, over the angle opposite the angle u want to find. You use the Math.atan and atan2 to find this angle. you can use this to detect the mouse angle as well as other things i guess.
• 06-25-2005, 04:05 PM
AndreMichelle
Math.atan returns an angle by a given Number (dy/dx).
Math.atan2 provides 2 parameters as dy, dx - where dx can be zero, which is not allowed to divide by in mathematic context.
• 03-03-2010, 09:48 PM
gbabic
Quote:

Originally Posted by gabi_poa
Can someone please expplain to me what does Math.atan2 and Math.atan returns? I made a file to try to understand, but I cant figure out what they do!!!
I saw a lot o fo files wich use those actions, but still couldnt understand.

Math.atan2 returns the angle in radians of the resulting vector.