Skip to main content

inner_corner_lattice

Function inner_corner_lattice 

Source
pub fn inner_corner_lattice(
    quads: &[LinkedQuad],
    coords: &HashMap<usize, QuadGrid>,
) -> Vec<((i32, i32), (f32, f32))>
Expand description

Inner board corners with their lattice coordinates (unordered).

Inner corners are the lattice points referenced by two or more quads (the interior points where black squares meet); outer-boundary corners, touched by a single quad, are excluded. Linked corners are already snapped to a shared position, so all references to a lattice point coincide.