[][src]Function tray_rust::linalg::refract

pub fn refract(w: &Vector, n: &Vector, eta: f32) -> Option<Vector>

Compute the refraction of w entering surface with normal n where eta is the refractive index of the incident material divided by that of the exiting materia. In the case of total internal refraction this will return None.