Function advent_of_code_2022::day_8::count_visible_with_delta
source · fn count_visible_with_delta(
(origin_y, origin_x): (usize, usize),
(dy, dx): (isize, isize),
origin_height: u8,
grid: &Grid
) -> usize
Expand description
For a given tree, count how many trees can be seen in a given direction