aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authoropensim mirror account2010-11-17 15:10:07 -0800
committeropensim mirror account2010-11-17 15:10:07 -0800
commitbfe1f3fdf80b7bac1f60fde0d51e24d7b48e07b6 (patch)
tree569403f6304c368c9f582cac65511ffc6c815762 /OpenSim/Framework/Util.cs
parentMerge branch 'master' of /var/git/opensim/ (diff)
parentMake "show queues [full]" behave like "show users [full]" (diff)
downloadopensim-SC-bfe1f3fdf80b7bac1f60fde0d51e24d7b48e07b6.zip
opensim-SC-bfe1f3fdf80b7bac1f60fde0d51e24d7b48e07b6.tar.gz
opensim-SC-bfe1f3fdf80b7bac1f60fde0d51e24d7b48e07b6.tar.bz2
opensim-SC-bfe1f3fdf80b7bac1f60fde0d51e24d7b48e07b6.tar.xz
Merge branch 'master' of /var/git/opensim/
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index addfe5d..e8f8e01 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -451,6 +451,14 @@ namespace OpenSim.Framework
451 return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); 451 return (x + y - (min >> 1) - (min >> 2) + (min >> 4));
452 } 452 }
453 453
454 /// <summary>
455 /// Are the co-ordinates of the new region visible from the old region?
456 /// </summary>
457 /// <param name="oldx">Old region x-coord</param>
458 /// <param name="newx">New region x-coord</param>
459 /// <param name="oldy">Old region y-coord</param>
460 /// <param name="newy">New region y-coord</param>
461 /// <returns></returns>
454 public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy) 462 public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy)
455 { 463 {
456 // Eventually this will be a function of the draw distance / camera position too. 464 // Eventually this will be a function of the draw distance / camera position too.