fn coords(idx: usize) -> SectorCoords {
        let mut remaining = idx;

        let z = remaining / (SECTOR_DIM * SECTOR_DIM);
        remaining -= z * SECTOR_DIM * SECTOR_DIM;

        let y = remaining / SECTOR_DIM;
        remaining -= y * SECTOR_DIM;

        let x = remaining;

        SectorCoords(x, y, z)
    }
// Determine the sector coordinates that correspond to a
// particular array index.
Determine the sector coordinates that correspond to a
particular array index.
Determine the sector coordinates that correspond to a particular array index .
fn coords(idx: usize) -> SectorCoords {
        let mut remaining = idx;
        let z = remaining / (SECTOR_DIM * SECTOR_DIM);
        remaining -= z * SECTOR_DIM * SECTOR_DIM;
        let y = remaining / SECTOR_DIM;
        remaining -= y * SECTOR_DIM;
        let x = remaining;
        SectorCoords(x, y, z)
    }
fn coords ( idx : usize ) -> SectorCoords { let mut remaining = idx ; let z = remaining / ( SECTOR_DIM * SECTOR_DIM ) ; remaining -= z * SECTOR_DIM * SECTOR_DIM ; let y = remaining / SECTOR_DIM ; remaining -= y * SECTOR_DIM ; let x = remaining ; SectorCoords ( x , y , z ) }
Determine the sector coordinates that correspond to a
particular array index.
Determine the sector coordinates that correspond to a particular array index .
idx
usize
idx
usize