MCPcopy Create free account
hub / github.com/Notgnoshi/generative / tri_i2x

Function tri_i2x

tools/grid.rs:143–149  ·  view source on GitHub ↗
(i: usize, size_x: f64, odd: bool)

Source from the content-addressed store, hash-verified

141}
142
143fn tri_i2x(i: usize, size_x: f64, odd: bool) -> f64 {
144 let mut x = (i as f64) * size_x;
145 if odd {
146 x += 0.5 * size_x;
147 }
148 x
149}
150
151fn tri_j2y(j: usize, triangle_height: f64) -> f64 {
152 (j as f64) * triangle_height

Callers 1

tri_gridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected