atan2 y, x
Returns the arctangent of y/x in the range - to . A quick way to get an approximate value of is to say:
/
$pi = atan2(1,1) * 4;
POSIX::tan()
sub tan { sin($_[0]) / cos($_[0]) }
Copyright © 2001 O'Reilly & Associates. All rights reserved.