Exemplo n.º 1
0
 /// <summary>
 /// The PointPairBase copy constructor.
 /// </summary>
 /// <param name="rhs">The basis for the copy.</param>
 public PointPairBase(PointPairBase rhs)
 {
     this.X = rhs.X;
     this.Y = rhs.Y;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Compare two <see cref="PointPairBase"/> objects for equality.  To be equal, X and Y
        /// must be exactly the same between the two objects.
        /// </summary>
        /// <param name="obj">The <see cref="PointPairBase"/> object to be compared with.</param>
        /// <returns>true if the <see cref="PointPairBase"/> objects are equal, false otherwise</returns>
        public override bool Equals(object obj)
        {
            PointPairBase rhs = obj as PointPairBase;

            return(this.X == rhs.X && this.Y == rhs.Y);
        }