(j: usize, triangle_height: f64)
| 149 | } |
| 150 | |
| 151 | fn tri_j2y(j: usize, triangle_height: f64) -> f64 { |
| 152 | (j as f64) * triangle_height |
| 153 | } |
| 154 | |
| 155 | fn tri_grid(width: usize, height: usize, size_x: f64, size_y: f64) -> GeometryGraph<Undirected> { |
| 156 | let nodes = (width + 1) * (height + 1); |