Skip to main content

vec3_reject

Function vec3_reject 

Source
pub fn vec3_reject(v: &Vec3, onto_unit: &Vec3) -> Vec3
Expand description

Reject (orthogonal complement) of v with respect to unit direction u: reject(v, u) = v - project(v, u).