Function nalgebra_glm::refract_vec

source ·
pub fn refract_vec<T: RealNumber, const D: usize>(
    i: &TVec<T, D>,
    n: &TVec<T, D>,
    eta: T
) -> TVec<T, D>
Expand description

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