Function refract_vec

Source
pub fn refract_vec<T, const D: usize>(
    i: &Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>,
    n: &Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>,
    eta: T,
) -> Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>
where T: RealNumber,
Expand description

For the incident vector i and surface normal n, and the ratio of indices of refraction eta, return the refraction vector.