aoc::year2021::day13

Function fold_vertical

Source
fn fold_vertical(y: i32, p: Point) -> Point
Expand description

Fold point at y coordinate, doing nothing if the point is above the fold line.