Programming Challenges 18-18
Programming Challenges 18-18
12 Grids 268
12.1 Rectilinear Grids . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
12.1.1 Traversal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
12.1.2 Dual Graphs and Representations . . . . . . . . . . . . . . . . 270
12.2 Triangular and Hexagonal Grids . . . . . . . . . . . . . . . . . . . . . 271
12.2.1 Triangular Lattices . . . . . . . . . . . . . . . . . . . . . . . . 271
12.2.2 Hexagonal Lattices . . . . . . . . . . . . . . . . . . . . . . . . 272
12.3 Program Design Example: Plate Weight . . . . . . . . . . . . . . . . 275
12.4 Circle Packings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
12.5 Longitude and Latitude . . . . . . . . . . . . . . . . . . . . . . . . . . 278