mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Correct unit test for llAngleBetween()
Reinstate patch for Mantis #3007
This commit is contained in:
@@ -4277,8 +4277,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
|
||||
//if (angle < 0) angle = -angle;
|
||||
//if (angle > Math.PI) return (Math.PI * 2 - angle);
|
||||
if (angle < 0) angle = -angle;
|
||||
if (angle > Math.PI) return (Math.PI * 2 - angle);
|
||||
return angle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user