Skip to main content

vec3_reflect_about_normal

Function vec3_reflect_about_normal 

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

Reflect vector v about unit normal n: v - 2*(v·n)*n.