Don't click here unless you want to be banned.

LSL Wiki : llAtan2

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
float llAtan2(float y, float x)

Returns the arctangent in radians of y/x.

Compare with llTan.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Math
Comments [Hide comments/form]
More specifically, llAtan2(y,x) returns the angle between the 2d vectors <1,0> and <x,y>, just like standard C math library. The angle return ranges -PI to PI.
Object: llAtan2(0.000000,1.000000) = 0.000000
Object: llAtan2(1.000000,1.000000) = 0.785398
Object: llAtan2(1.000000,0.000000) = 1.570796
Object: llAtan2(1.000000,-1.000000) = 2.356194
Object: llAtan2(0.000000,-1.000000) = 3.141593
Object: llAtan2(-1.000000,-1.000000) = -2.356194
Object: llAtan2(-1.000000,0.000000) = -1.570796
Object: llAtan2(-1.000000,1.000000) = -0.785398
-- DavanCamus (2005-11-17 21:53:11)
Attach a comment to this page: