Skip to main content

float_refract

Function float_refract 

Source
fn float_refract<F>(
    e1: &[F],
    e2: &[F],
    e3: F,
) -> Option<ArrayVec<F, { crate::VectorSize::MAX }>>
where F: Float,
Expand description

The refraction of incident vector e1 through a surface with normal e2, for a ratio of indices of refraction e3.