Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // swap two elements of list:
- // based on answer here https://stackoverflow.com/questions/552731/c-good-best-implementation-of-swap-method
- List<Boid> Swap(List<Boid> list, int indexA, int indexB)
- {
- Boid tmp = list[indexA];
- list[indexA] = list[indexB];
- list[indexB] = tmp;
- return list;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement