change llAtan2 arguments order to (y,x) to match standard documentation

This commit is contained in:
UbitUmarov
2024-04-12 22:14:54 +01:00
parent 36f95e0167
commit 25dcfa8b4e
4 changed files with 14 additions and 9 deletions

View File

@@ -833,9 +833,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return Math.Tan(f);
}
public LSL_Float llAtan2(LSL_Float x, LSL_Float y)
public LSL_Float llAtan2(LSL_Float y, LSL_Float x)
{
return Math.Atan2(x, y);
return Math.Atan2(y, x);
}
public LSL_Float llSqrt(double f)