Hexmap alignment

Discussion in 'Science and Technology' started by ThunderAeroI, Aug 19, 2014.

  1. ThunderAeroI

    ThunderAeroI Rear Admiral Rear Admiral

    Joined:
    Feb 28, 2002
    Location:
    Perpetually being chased by airplanes
    Hello,

    Time for another totally self-serving contest where you the contest try to solve a problem I am having.

    Given the following: http://i18.photobucket.com/albums/b147/airportphantom/rotate_zps073ea02c.png

    You will see that the Hex shapes are not aligned properly. They are perfectly aligned along the Y axis; however, not in the correct position.

    You will see that each line needs to be moved over an additional 1/2 of the hex for each X. And moved up a few pixels.

    I'm having one hell of a hard time getting the formula right to do this.

    Any ideas?
     
  2. publiusr

    publiusr Admiral Admiral

    Joined:
    Mar 22, 2010
    Location:
    publiusr
  3. Robert Maxwell

    Robert Maxwell memelord Premium Member

    Joined:
    Jun 12, 2001
    Location:
    space
    This probably offers as much detail as you'd want on how to do hex grids, including how to calculate their positions for drawing a map.