diff options
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index c731561..a9aff60 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -46,6 +46,12 @@ namespace OpenSim.Framework | |||
46 | private static object XferLock = new object(); | 46 | private static object XferLock = new object(); |
47 | private static Dictionary<LLUUID, string> capsURLS = new Dictionary<LLUUID, string>(); | 47 | private static Dictionary<LLUUID, string> capsURLS = new Dictionary<LLUUID, string>(); |
48 | 48 | ||
49 | public static double GetDistanceTo(LLVector3 a, LLVector3 b) { | ||
50 | float dx = a.X - b.X; | ||
51 | float dy = a.Y - b.Y; | ||
52 | float dz = a.Z - b.Z; | ||
53 | return Math.Sqrt(dx * dx + dy * dy + dz * dz); | ||
54 | } | ||
49 | 55 | ||
50 | public static ulong UIntsToLong(uint X, uint Y) | 56 | public static ulong UIntsToLong(uint X, uint Y) |
51 | { | 57 | { |