Function sdfgen_lib::get_closest[][src]

pub fn get_closest(
    active: &Vec<[u32; 2]>,
    value: &[u32; 2],
    second_pass: bool
) -> [([u32; 2], u32); 3]
Expand description

Finds the closest coordinate in the give coordinate list active. Returns and array of the size of 3. If secondpass is not enabled these will all be the same ( the closest coordinate). second_pass enables the search of three closest values, instead of just one.