diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 4 |
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 | } |