예제 #1
0
        /// <summary>
        /// Compare two <see c_ref="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 c_ref="PointPairBase"/> object to be compared with.</param>
        /// <returns>true if the <see c_ref="PointPairBase"/> objects are equal, false otherwise</returns>
        public override bool Equals(object obj)
        {
            PointPairBase rhs = obj as PointPairBase;

            return(X == rhs.X && Y == rhs.Y);
        }
예제 #2
0
 /// <summary>
 /// The PointPairBase copy constructor.
 /// </summary>
 /// <param name="rhs">The basis for the copy.</param>
 public PointPairBase(PointPairBase rhs)
 {
     X = rhs.X;
     Y = rhs.Y;
 }
예제 #3
0
		/// <summary>
		/// The PointPairBase copy constructor.
		/// </summary>
		/// <param name="rhs">The basis for the copy.</param>
		public PointPairBase( PointPairBase rhs )
		{
			X = rhs.X;
			Y = rhs.Y;
		}