Function aoc::year2019::day10::quadrant

source ·
fn quadrant(point: Point) -> i32
Expand description

Divide points into one of four quadrants. For points exactly on an axis, for example (1, 0) or (-5, 0) we can choose either adjacent quadrant as long as we’re consistent.