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

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

From: Robert Purves <robert.purves@...>
Date: Fri, 29 Aug 2003 12:05:59 +1200
David Parrish wrote:

> I need FB code for the atan2(x,y) trig function. This finds the 
> Arctangent of a point.


#if ( CarbonLib == 0 )
library "MathLib"
#endif
toolbox fn atan2( double y, double x ) = double
library

print fn atan2( 1.0, 1.0 )
print fn atan2( -1.0, 1.0 )
print fn atan2( -1.0, -1.0 )
print fn atan2( 1.0, -1.0 )


Robert P.