min max coordinate of cells , given cell length in c#
Posted
by Raj
on Stack Overflow
See other posts from Stack Overflow
or by Raj
Published on 2010-04-19T07:38:45Z
Indexed on
2010/04/19
7:43 UTC
Read the original article
Hit count: 288
Please see attached picture to better understand my question
i have a matrix of cells of [JXI] , cell is square in shape with length "a"
my question is .. is there a way to use FOR loop to assign MIN,MAX coordinate to each cell taking origin (0,0) at one corner
Thanks
"freeimagehosting.net/uploads/3b09575180.jpg"
i was trying following code but no success
int a ;
a = 1;
for (int J=1; J<=5; J++)
{
for (int I = 1; I <= 5; I++)
{
double Xmin = ((I - 1)*a );
double Ymin = ((J - 1) * a);
double Xmax = (I * a );
double Ymax = (J * a);
}
}
© Stack Overflow or respective owner