Correct unit test for llAngleBetween()

Reinstate patch for Mantis #3007
This commit is contained in:
Dahlia Trimble
2009-04-08 03:16:24 +00:00
parent ad7b005784
commit d5727c8c1a
2 changed files with 3 additions and 7 deletions

View File

@@ -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;
}