Function advent_of_code_2022::day_8::mark_visible_trees
source · fn mark_visible_trees(
(origin_y, origin_x): (usize, usize),
(dy, dx): (isize, isize),
trees_grid: &Grid,
visibility_grid: &mut Grid
)
Expand description
For a given row or column start or end step forwards or backwards marking those that can be seen from the starting position