Function nalgebra_glm::reflect_vec [−][src]
pub fn reflect_vec<N: Number, D: Dimension>(
i: &TVec<N, D>,
n: &TVec<N, D>
) -> TVec<N, D> where
DefaultAllocator: Alloc<N, D>,
For the incident vector i
and surface orientation n
, returns the reflection direction : result = i - 2.0 * dot(n, i) * n
.