Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Back story making a game that needs 2 sets of hexagonal grids inside of a square(this square changes in size). This is what i have so far.

Current Image

My grid is 9 hexs in height and essential 7 long (5 full and 4 halfs) The side of inner hex is dynamic being = max possible so the outer hex doesn't overlap.

Im trying to figure out how to find the size of a side i'm a bit stuck.

Current approach is to take the center of the screen and draw a point in the middle then make a triangle from the middle to the edge of the square at an angle of 30 Degrees. Which is what the side of my grid ends up as. So, in my head at least, the height and width of this grid should never overlap this line.

Past this im lost and help would be awesome :)

share|cite|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.