the parameters for llAtan2 were inverted before passing to Math.

Thanks to Rob Smart for pointing this out.
This commit is contained in:
Sean Dague
2009-02-07 13:16:27 +00:00
parent 54c6a920ba
commit 6bd2979486

View File

@@ -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)