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.