From 80c7ffeb2957e47c21bdb78749217c642d21ce14 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 4 Apr 2018 01:25:49 +0100 Subject: [PATCH] fix the comment about return value of osAngleBetween() its 0 to PI --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 51b289bb03..253bb06438 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -4825,11 +4825,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return LSL_Vector.MagSquare(a - b); } - // returns the angle between 2 vectors -pi to pi + // returns the angle between 2 vectors 0 to pi public LSL_Float osAngleBetween(LSL_Vector a, LSL_Vector b) { double dot = LSL_Vector.Dot(a,b); - double mcross = LSL_Vector.Mag(LSL_Vector.Cross(a,b)); + double mcross = LSL_Vector.Mag(LSL_Vector.Cross(a,b)); return Math.Atan2(mcross, dot); } }