示例#1
0
 public CoordinateN(CoordinateN <T> other)
 {
     if (other == null)
     {
         throw new ArgumentNullException();
     }
     this.ordinates = new T[other.ordinates.Length];
     Array.Copy(other.ordinates, this.ordinates, this.ordinates.Length);
 }
示例#2
0
 public bool Equals(CoordinateN <T> other)
 {
     if (this.ordinates.Length == other.ordinates.Length)
     {
         for (int i = 0; i < this.ordinates.Length; i++)
         {
             if (!this.ordinates[i].Equals(other.ordinates[i]))
             {
                 return(false);
             }
         }
     }
     return(false);
 }