31 namespace OpenSim.Framework
36 private readonly uint m_x;
37 private readonly uint m_y;
47 m_x = (uint)(regionHandle >> 32);
48 m_y = (uint)(regionHandle & (ulong)uint.MaxValue);
51 public ulong RegionHandle
53 get {
return Utils.UIntsToLong(m_x, m_y); }
66 public override bool Equals(
object obj)
68 if (ReferenceEquals(obj,
this))
73 return Equals((Location) obj);
76 return base.Equals(obj);
81 return loc.X == X && loc.Y == Y;
86 return X == x && y == Y;
89 public static bool operator ==(
Location o,
object o2)
94 public static bool operator !=(
Location o,
object o2)
101 return X.GetHashCode() ^ Y.GetHashCode();
override int GetHashCode()
bool Equals(Location loc)
bool Equals(int x, int y)
Location(ulong regionHandle)
override bool Equals(object obj)