From 6bd2979486d0d6396dcc87db1c75369d9159c59b Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sat, 7 Feb 2009 13:16:27 +0000 Subject: the parameters for llAtan2 were inverted before passing to Math. Thanks to Rob Smart for pointing this out. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0825bf8..c14d454 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -344,7 +344,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_Float llAtan2(double x, double y) { m_host.AddScriptLPS(1); - return (double)Math.Atan2(y, x); + return (double)Math.Atan2(x, y); } public LSL_Float llSqrt(double f) -- cgit v1.1