Home > Back-end > C algorithm is to cover the hexagonal rectangular coordinates
C algorithm is to cover the hexagonal rectangular coordinates
Time:02-23
The width of a given rectangle, the length of hexagon, can cover the center of the rectangle by the number of hexagon with hexagon coordinate
CodePudding user response:
Imagine "hexagonal grid size and location is constant, the rectangle scaling, translation and rotation" scene, Obviously, inadequate conditions, the solution is not the only,
CodePudding user response:
Obviously, for half of the long side of the rectangle side length of hexagonal only need three is enough to cover a rectangle