(first off, just to be sure, a hexagon is a polygon with 6 points, think honey-comb or Civilisation 5)
I'm making a game that uses a hexagonal grid, but I can't seem to get the bounding box right, Javas API only tells me about rectangular "BB" (getBounds and getBounds2D).
I've drawn the shapes and aligned them as they should be, but I want the cells to be exactly adjacent to eachother, either that the edges go into eachother or that they are right next to eachother, but never even 1 pixel between them. This is impossible to do right now when the BB is rectangular.
If this is completely impossible, maybe there's a way to reduce the components size but still draw the full thing? That way you could have a regular rectangle that spans in the middle of the hexagonal, although it leaves the two "points" useless, which is not good.
Thanks <3