From d51ce47b2d7635b17f3dd429158e8f59b78b83aa Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 1 May 2008 14:31:30 +0000 Subject: Update svn properties. Minor formatting cleanup. --- OpenSim/Framework/Location.cs | 128 +++++++++++++++++++++--------------------- 1 file changed, 64 insertions(+), 64 deletions(-) (limited to 'OpenSim/Framework/Location.cs') diff --git a/OpenSim/Framework/Location.cs b/OpenSim/Framework/Location.cs index 24430c6..4019a79 100644 --- a/OpenSim/Framework/Location.cs +++ b/OpenSim/Framework/Location.cs @@ -1,65 +1,65 @@ -using System; - -namespace OpenSim.Framework -{ - [Serializable] - public class Location : ICloneable - { - private readonly int m_x; - private readonly int m_y; - - public Location(int x, int y) - { - m_x = x; - m_y = y; - } - - public int X - { - get { return m_x; } - } - - public int Y - { - get { return m_y; } - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(obj, this)) - return true; - - if (obj is Location) - { - return Equals((Location) obj); - } - - return base.Equals(obj); - } - - public bool Equals(Location loc) - { - return loc.X == X && loc.Y == Y; - } - - public bool Equals(int x, int y) - { - return X == x && y == Y; - } - - public UInt64 RegionHandle - { - get { return UInt64.MinValue; } - } - - public override int GetHashCode() - { - return X.GetHashCode() * 29 + Y.GetHashCode(); - } - - public object Clone() - { - return new Location(X, Y); - } - } +using System; + +namespace OpenSim.Framework +{ + [Serializable] + public class Location : ICloneable + { + private readonly int m_x; + private readonly int m_y; + + public Location(int x, int y) + { + m_x = x; + m_y = y; + } + + public int X + { + get { return m_x; } + } + + public int Y + { + get { return m_y; } + } + + public override bool Equals(object obj) + { + if (ReferenceEquals(obj, this)) + return true; + + if (obj is Location) + { + return Equals((Location) obj); + } + + return base.Equals(obj); + } + + public bool Equals(Location loc) + { + return loc.X == X && loc.Y == Y; + } + + public bool Equals(int x, int y) + { + return X == x && y == Y; + } + + public UInt64 RegionHandle + { + get { return UInt64.MinValue; } + } + + public override int GetHashCode() + { + return X.GetHashCode() * 29 + Y.GetHashCode(); + } + + public object Clone() + { + return new Location(X, Y); + } + } } \ No newline at end of file -- cgit v1.1