/// <summary>
 /// Adds one matrix to another.
 /// Addition is defined by taking the maximum dimension value of each position
 /// in the summand matrices.
 /// </summary>
 /// <param name="im">The matrix to add.</param>
 public void Add(IntersectionMatrix im)
 {
     for (int i = 0; i < 3; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             SetAtLeast((Location)i, (Location)j, im.Get((Location)i, (Location)j));
         }
     }
 }
Beispiel #2
0
 /// <summary> 
 /// Adds one matrix to another.
 /// Addition is defined by taking the maximum dimension value of each position
 /// in the summand matrices.
 /// </summary>
 /// <param name="im">The matrix to add.</param>        
 public void Add(IntersectionMatrix im)
 {
     for (int i = 0; i < 3; i++)
         for (int j = 0; j < 3; j++)
             SetAtLeast((Location)i, (Location)j, im.Get((Location)i, (Location)j));
 }