aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorMelanie2013-03-14 22:34:15 +0000
committerMelanie2013-03-14 22:34:15 +0000
commit8b657773e4305dc853802017b3353d8d85872e14 (patch)
tree9810e0c221baf927110b34a2d0545182e25595fd /OpenSim/Framework/Util.cs
parentMerge branch 'avination' into careminster (diff)
parentrefactor: use LSL_Rotation(Quaternion) constructor in lLGetRootRotation() (diff)
downloadopensim-SC-8b657773e4305dc853802017b3353d8d85872e14.zip
opensim-SC-8b657773e4305dc853802017b3353d8d85872e14.tar.gz
opensim-SC-8b657773e4305dc853802017b3353d8d85872e14.tar.bz2
opensim-SC-8b657773e4305dc853802017b3353d8d85872e14.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/ScenePresence.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 96644ec..e4d7e19 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -303,12 +303,12 @@ namespace OpenSim.Framework
303 // Clamp the maximum magnitude of a vector 303 // Clamp the maximum magnitude of a vector
304 public static Vector3 ClampV(Vector3 x, float max) 304 public static Vector3 ClampV(Vector3 x, float max)
305 { 305 {
306 Vector3 ret = x;
307 float lenSq = x.LengthSquared(); 306 float lenSq = x.LengthSquared();
308 if (lenSq > (max * max)) 307 if (lenSq > (max * max))
309 { 308 {
310 x = x / x.Length() * max; 309 x = x / x.Length() * max;
311 } 310 }
311
312 return x; 312 return x;
313 } 313 }
314 314