pub fn reflect_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>>,
) -> Matrix<T, Const<D>, Const<1>, ArrayStorage<T, D, 1>>where
T: Number,Expand description
For the incident vector i and surface orientation n, returns the reflection direction : result = i - 2.0 * dot(n, i) * n.