ThatSnail

Untitled

Mar 28th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. template<typename T> inline void setCell(std::vector< std::vector<T> > g, int x, int y, T value)
  2. {
  3. g[(x+WIDTH)%WIDTH][(y+HEIGHT)%HEIGHT]=value;
  4. }
Add Comment
Please, Sign In to add comment