Skip to main content

cube_edge_index

Function cube_edge_index 

Source
pub fn cube_edge_index(
    varying: usize,
    sign_first: f64,
    sign_second: f64,
) -> usize
Expand description

Canonical index of the cube edge whose VARYING axis is varying and whose two other axes (varying+1) % 3 and (varying+2) % 3 are pinned to the given signs. Twelve edges: three varying axes times four sign pairs.