[C# Helper]
Index Books FAQ Contact About Rod
[Beginning Database Design Solutions, Second Edition]

[Beginning Software Engineering, Second Edition]

[Essential Algorithms, Second Edition]

[The Modern C# Challenge]

[WPF 3d, Three-Dimensional Graphics with WPF and C#]

[The C# Helper Top 100]

[Interview Puzzles Dissected]

[C# 24-Hour Trainer]

[C# 5.0 Programmer's Reference]

[MCSD Certification Toolkit (Exam 70-483): Programming in C#]

Title: Draw a rotated hexagonal grid in C#

[Draw a rotated hexagonal grid in C#]

The post Draw a hexagonal grid in C# shows how to draw a hexagonal grid. This post shows how to make a similar grid but with the hexagons rotated so their pointy sides are on the top and bottom as shown in the picture on the right.

Actually this post doesn't explain much. It just refers you to the previous example. This example is basically the same as the previous one except with width/height, row/column, and x/y playing swapped roles. See that example for the basic ideas and the geometry. The changes are straightforward but there are a lot of them so it can be hard to work through them all without making any mistakes.

Download the example to experiment with it and to see additional details.

© 2009-2023 Rocky Mountain Computer Consulting, Inc. All rights reserved.