Function reflect

Source
pub fn reflect(v: Vec3, n: Vec3) -> Vec3
Expand description

Computes the reflection vector (v: incident direction, n: unit surface normal).

r = v - 2(vยทn)n