mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
the parameters for llAtan2 were inverted before passing to Math.
Thanks to Rob Smart for pointing this out.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user