Hello,
I'd like to construct variable-length polygon arrays, which contain a set of points given their coordinates. Each point has two coordinates (x, y). Eg.:
where (x1,y1) ... represents the first point in 1-dimensional array.
I'm also thinking about using 2D arrays like this:
Since the bounds of dimensions are equal (naturally), I'm also fine if the first dimension contains X values and the second dimension contains Y values.
But then I don't know how to retrieve and cycle through the data (points) in them.
So, the questions are:
i) which array type to use? 1D or 2D
ii) how can I fill in and retrieve data from these arrays?
Thanks!
I'd like to construct variable-length polygon arrays, which contain a set of points given their coordinates. Each point has two coordinates (x, y). Eg.:
Code:
poly001 = [ (x1,y1); (x2,y2); ... (xn, yn) ]
I'm also thinking about using 2D arrays like this:
Code:
Dim poly001(6, 6) As Double, poly002(7, 7) As Double, poly003(5, 5) As Double, poly004(8, 8) As Double
But then I don't know how to retrieve and cycle through the data (points) in them.
So, the questions are:
i) which array type to use? 1D or 2D
ii) how can I fill in and retrieve data from these arrays?
Thanks!