morgan73

matrix border

Jun 4th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (int col = Math.Max(0, targetCol - radius); col <= Math.Min(targetCol + radius, target[targetRow].Count - 1); col++)
  2.  {
  3. // do smth
  4. }
Add Comment
Please, Sign In to add comment