Advertisement
jeff69

Untitled

Dec 30th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. pair<int,int> di={{1,0},{1,1},{0,1},{-1,1},{-1,0},{-1,-1},{0,-1},{1,-1}};
  3. // if you want to rotate +45 di[i+1] is the new direction else di[i-1] , i+1=(i+1+8)%8;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement