   Iso coordinates
  I'm using the method in the below graphic for my isometric engine. I'm having problems though... I can't figure out how to find out what cell/tile a given set of coordinates (x,y) are located in.[edited by - Dustino on February 12, 2004 12:09:44 AM]
  well i assumed you are using it in a 2D context...when i was making my IsoGame i was using a super primitive method to fine the hex that was clicked..u create 4 Rgns or Triangles symbolizing the 4 empty corners around the IsoHex, (form a imaginary square/rectangle around the IsoHEx) and check if the mouseclick is in the 4 triangles...darn primitive but...hey it worked for me. but it didn''t really work on XP as the RGns seemed to be inivisble..but it works fine on my win98 comp so gd lk to u ;  If you define a set of coordinates for row and column (r,c) and describe your cells by r,c coordinates ... you can relate the r,c axes to the x,y axes by the simple formulae: r = -y - 0.5x c = -y + 0.5xFor example, the middle of cell 6 has x,y coordinates of (1,-2) which translates to r,c coordinates of (1.5,2.5) ie. the middle of second row and the middle of the third column.Similarly, the middle of cell 8 has x,y coordinates of (-2,-1.5) which translates to r,c coordinates of (2.5,0.5) ie. the middle of the third row and the middle of the first column.;  Thanks Doctor J thats exactly what I needed 