Difference between revisions of "LlAtan2"

From Second Life Wiki
Jump to: navigation, search
Line 6: Line 6:
 
|p2_type=float|p2_name=x|p2_desc
 
|p2_type=float|p2_name=x|p2_desc
 
|return_type=float
 
|return_type=float
|return_text=that is the arctangent2 of y, x.
+
|return_text=that is the {{wikipedia|Atan2|arctangent2}} of y, x.
 
|spec
 
|spec
 
|caveats
 
|caveats
Line 19: Line 19:
 
{{LSL DefineRow||{{wikipedia|Inverse_trigonometric_function}}|}}
 
{{LSL DefineRow||{{wikipedia|Inverse_trigonometric_function}}|}}
 
|notes
 
|notes
|cat=Math/Trigonometry
+
|cat1=Math/Trigonometry
|cat
+
|cat2
|cat
+
|cat3
|cat
+
|cat4
 
}}
 
}}

Revision as of 11:47, 25 February 2007

Summary

Function: float llAtan2( float y, float x );

Returns a float that is the arctangent2 of y, x.

• float y
• float x

Similar to the arctangent(y/x) except it utilizes the signs of x & y to determine the quadrant.

Examples

See Also

Functions

•  llAcos
•  llAcos

Articles

•  Wikipedia:Atan2
•  Wikipedia:Inverse_trigonometric_function

Deep Notes

Search JIRA for related Issues

Signature

function float llAtan2( float y, float x );