Пример #1
0
 public static void ForEachElement(Vector2UInt a_Beg,
                                   Vector2UInt a_End,
                                   Action <Vector2UInt> a_Func)
 {
     for (uint y = a_Beg.Y; y < a_End.Y; ++y)
     {
         for (uint x = a_Beg.X; x < a_End.X; ++x)
         {
             a_Func(new Vector2UInt {
                 X = x, Y = y
             });
         }
     }
 }
Пример #2
0
 public static void ForEachElement(Vector2UInt a_Vec, Action <Vector2UInt> a_Func)
 {
     ForEachElement(Vector2UInt.ZERO, a_Vec, a_Func);
 }