aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2018-04-04 01:25:49 +0100
committerUbitUmarov2018-04-04 01:25:49 +0100
commit80c7ffeb2957e47c21bdb78749217c642d21ce14 (patch)
tree23e04d4473774968516c49ab243648c35e8a1e01 /OpenSim
parentadd auxiliar functions float osVecMagSquare(a), float osVecDistSquare(vector ... (diff)
downloadopensim-SC-80c7ffeb2957e47c21bdb78749217c642d21ce14.zip
opensim-SC-80c7ffeb2957e47c21bdb78749217c642d21ce14.tar.gz
opensim-SC-80c7ffeb2957e47c21bdb78749217c642d21ce14.tar.bz2
opensim-SC-80c7ffeb2957e47c21bdb78749217c642d21ce14.tar.xz
fix the comment about return value of osAngleBetween() its 0 to PI
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs4
1 files 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 51b289b..253bb06 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
4825 return LSL_Vector.MagSquare(a - b); 4825 return LSL_Vector.MagSquare(a - b);
4826 } 4826 }
4827 4827
4828 // returns the angle between 2 vectors -pi to pi 4828 // returns the angle between 2 vectors 0 to pi
4829 public LSL_Float osAngleBetween(LSL_Vector a, LSL_Vector b) 4829 public LSL_Float osAngleBetween(LSL_Vector a, LSL_Vector b)
4830 { 4830 {
4831 double dot = LSL_Vector.Dot(a,b); 4831 double dot = LSL_Vector.Dot(a,b);
4832 double mcross = LSL_Vector.Mag(LSL_Vector.Cross(a,b)); 4832 double mcross = LSL_Vector.Mag(LSL_Vector.Cross(a,b));
4833 return Math.Atan2(mcross, dot); 4833 return Math.Atan2(mcross, dot);
4834 } 4834 }
4835 } 4835 }