Raised This Month: $ Target: $400
 0% 

floatatan


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 12-18-2005 , 20:05   floatatan
Reply With Quote #1

Ok, I got all 3 sides of my triangle

Code:
 |\
 |q\
 |  \ Z
Y|   \
 |    \
 ------
   X
Now I need to find angle q.
Tan(q) = X/Y
tan-1(tan(q)) = angle of q

so now I need to know how to use the inverse tangent (atan) command

The only thing that confuses me is in funcwiki it says
Float: floatatan(Float:angle,radix)

new Float:angleq = floatatan(X/Y,degrees)

It says Float:angle but we want to find the angle using the arctan yet it says to specify the angle (Float:angle). Is this just a typo or is the atan command not arctan?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode