Function glm::builtin::reflect
[−]
[src]
pub fn reflect<S: BaseFloat, T: GenFloatVec<S>>(I: T, N: T) -> T
For the incident vector I and surface orientation N,
returns the reflection direction: I - 2 ∗ dot(N, I) ∗ N
.
N must already be normalized in order to achieve the desired result.