GeometryClassLibrary.Translation.Equals C# (CSharp) Method

Equals() public method

does the same thing as ==
public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            //make sure we didnt get a null
            if (obj == null || !(obj is Translation))
            {
                return false;
            }

          
            Translation comparableTranslation = (Translation)obj;

            return this.Point.Equals(comparableTranslation.Point);
        
        }