[][src]Function minutiae::util::get_index

pub fn get_index(x: usize, y: usize, universe_size: usize) -> usize

Given an X and Y coordinate in the universe and the universe's size, returns the index of that coordinate in the universe.