temporarily revert llanglebetween patch until unit test can be updated - affects Mantis #3007
parent
e7a051d2be
commit
ea5b120006
|
@ -4278,8 +4278,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
m_host.AddScriptLPS(1);
|
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;
|
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 < 0) angle = -angle;
|
||||||
if (angle > Math.PI) return (Math.PI * 2 - angle);
|
//if (angle > Math.PI) return (Math.PI * 2 - angle);
|
||||||
return angle;
|
return angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue