Function advent_of_code_2021::day_22::limit_instructions [−][src]
fn limit_instructions(
instructions: &Vec<Instruction>,
limit: Cuboid
) -> Vec<Instruction>ⓘExpand description
Filter the list of instructions to just the region that intersects the limit Cuboid. If an
instruction’s cuboid is partially in the area, instead include a modified instruction that just
contains the intersection with the limit.
