visibility-2d: Add Geometry functions for Level resizing.

inverseLerp/mapInterval/AABB for Level walls.