Skip to main content

inside

Function inside 

Source
fn inside(input: &Input, x: i64, y: i64) -> bool
Expand description

Skip the relatively expensive intcode test if the point lies outside the beam’s slopes. The slope check has some false positives but no false negatives.