Optimized ray-sphere intersection, further planning