How a virtual lidar ray finds the nearest wall in an occupancy grid. Same query, five strategies with different
precompute / memory / precision trade-offs. Pick a method, sweep the angle, drag the robot.
Drag on the canvas to move the robot. Grey cells are walls; the coloured dot is the ray's hit point.