diff options
author | Dahlia Trimble | 2009-04-08 03:16:24 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-04-08 03:16:24 +0000 |
commit | d5727c8c1a8c80bc00c748bbd8610e45f911b60c (patch) | |
tree | a52d19389beb0177d261abf032db16b6b0456794 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | * minor: remove some mono compiler warnings (diff) | |
download | opensim-SC-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.zip opensim-SC-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.gz opensim-SC-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.bz2 opensim-SC-d5727c8c1a8c80bc00c748bbd8610e45f911b60c.tar.xz |
Correct unit test for llAngleBetween()
Reinstate patch for Mantis #3007
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index fe051e6..0f7d039 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4277,8 +4277,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4277 | m_host.AddScriptLPS(1); | 4277 | m_host.AddScriptLPS(1); |
4278 | 4278 | ||
4279 | double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; | 4279 | double angle = Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; |
4280 | //if (angle < 0) angle = -angle; | 4280 | if (angle < 0) angle = -angle; |
4281 | //if (angle > Math.PI) return (Math.PI * 2 - angle); | 4281 | if (angle > Math.PI) return (Math.PI * 2 - angle); |
4282 | return angle; | 4282 | return angle; |
4283 | } | 4283 | } |
4284 | 4284 | ||