begin ray-box intersection