wgpu_examples::water::point_gen

Function surrounding_hexagonal_points

Source
fn surrounding_hexagonal_points(x: isize, y: isize) -> [(isize, isize); 6]
Expand description

Gets the surrounding hexagonal points from a point.

+—0—1 | / | | 5—p—2 | | / | 4—3—+