pub fn i2xy(i: usize) -> (usize, usize) {
		(
			i % COLS,
			((i / COLS) as f64).floor() as usize
			// f32 floor changes to f64,
			// so why not go to f64 instantly
		)	
	}
// use this instead of calling from_xy multiple times
// converts an iterator i back to x and y
use this instead of calling from_xy multiple times
converts an iterator i back to x and y
use this instead of calling from_xy multiple times converts an iterator i back to x and y
pub fn i2xy(i: usize) -> (usize, usize) {
		(
			i % COLS,
			((i / COLS) as f64).floor() as usize
			// f32 floor changes to f64,
			// so why not go to f64 instantly
		)	
	}
pub fn i2xy ( i : usize ) -> ( usize , usize ) { ( i % COLS , ( ( i / COLS ) as f64 ) . floor ( ) as usize // f32 floor changes to f64, // so why not go to f64 instantly ) }
use this instead of calling from_xy multiple times
converts an iterator i back to x and y
use this instead of calling from_xy multiple times converts an iterator i back to x and y
i
usize
i
usize