I'm creating a class to handle coordinates, I want to call a function in it, this function needs to return 5+ sets of coordinates, obviously X and Y, to the program calling it.
I think I can use a 2D array, but I want to make the program scalable, it already is in terms of the number of sets of coordinates it can return, but is a 2D array going to be good enough for returning say 30 sets of coords?
Are there any better data structures for this task anyone can think of?