pub fn refract_out_normal(
e: f64,
dir: [f64; 3],
normal: [f64; 3],
e_s: f64,
) -> Option<(f64, [f64; 3])>Expand description
refract_out through a face with outward unit normal normal (any
orientation, not only the planar x faces): the normal component of the
momentum is reduced, the tangential components are unchanged. The
particle must be moving outward (dir . normal > 0) to escape.