advent_of_code_2024::day_14

Function partition_position

source
fn partition_position(
    (r, c): (usize, usize),
    (max_r, max_c): &(usize, usize),
) -> Option<Quadrant>
Expand description

For a given position, calculate which quadrant of the grid it is on. If the position is on one of the centre lines of the grid, this returns None