A three-dimensional laser ray-tracing methodology for radiation-hydrodynamics simulations (APL Computational Physics)