aoc::year2021::day13

Function fold_horizontal

Source
fn fold_horizontal(x: i32, p: Point) -> Point
Expand description

Fold point at x coordinate, doing nothing if the point is to the left of the fold line.