[futurebasic] Re: [FB] atan2 -- need code replace this function

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2003 : Group Archive : Group : All Groups

From: David Parrish <dp@...>
Date: Thu, 28 Aug 2003 15:06:24 -0700
The atan2(x,y) function works on a point, not an expression.

atan2 is a function that returns the angle ( in radians ) from the X 
axis to a point (y,x)



>On Thursday, August 28, 2003, at 10:45  AM, David Parrish wrote:
>
>>Are there any Trig Geniuses around.
>>
>>I need FB code for the atan2(x,y) trig function. This finds the 
>>Arctangent of a point.  FB does have this function unfortunately.
>>
>>Thanks,,,,,
>>
>>David Parrish
>>
>
>you need
>
>ATN
>
>ATN function   Syntax: radianAngle# = ATN(expr) Description: Returns 
>the arctangent of expr in radians.
>
>I went all confused one night too working on some filter with Java's 
>Atan2...the above returned the same.
>
>DIM gRadians as double
>gRadians = pi/180
>
>Multiply your result by 180, etc.
>
>I think.:)
>Robert
>
>
>--
>To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>