Click here to Skip to main content
15,887,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Say that I have a grid of coordinates...x goes from 0 to 100 and y goes from 0 to 200.
I want to store info about each point in an array...however if I declare an array[100,200] the array eill be 100 in height and 200 in width,while the grid is the opposite
So at an exercise they want me to create an array [x,y], for coordinates [x,y]
Will the array be 'titled 90 degrees' from what it should be?

Help would be appreciated...im kind of stuck here!!
Thank you vety much !
Posted

1 solution

What is the problem of the [100,200] arrangment (or of the opposite one) ?
If you access the items in a consistent manner, every arrangment is valid. After all the space is isotropic, isn't it? :-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900