示例#1
0
 public void Set(T obj, Int32 x, Int32 y)
 {
     if (x >= 0 && y >= 0)
     {
         positives.AddOrReplace(obj, x, y);
     }
     else if (x < 0 && y >= 0)
     {
         negativoPositive.AddOrReplace(obj, 1 - x, y);
     }
     else if (x >= 0 && y < 0)
     {
         positivoNegative.AddOrReplace(obj, x, 1 - y);
     }
     else if (x < 0 && y < 0)
     {
         negatives.AddOrReplace(obj, 1 - x, 1 - y);
     }
 }