Exemple #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);
 }
Exemple #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);
 }