¡@

Home 

java Programming Glossary: polyx

creating 10.000 connected hexagon page?

http://stackoverflow.com/questions/3687176/creating-10-000-connected-hexagon-page

you have the x y co ordinates of your hexes in two arrays polyX and polyY you get a nested loop drawHex g cx cy 0 for int rank.. of the previous face the rank away from centre int x cx polyX bar 4 6 polyX bar 5 6 rank int y cy polyY bar 4 6 polyY bar.. face the rank away from centre int x cx polyX bar 4 6 polyX bar 5 6 rank int y cy polyY bar 4 6 polyY bar 5 6 rank move..