Skip to main content

vec3_reject_from

Function vec3_reject_from 

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

Reject v from the unit direction onto_unit (perpendicular component).

Returns v - project_onto(v, onto_unit). onto_unit must be a unit vector.