Skip to main content

vec4_to_vec3

Function vec4_to_vec3 

Source
pub fn vec4_to_vec3(v: &Vec4) -> Option<Vec3>
Expand description

Project a Vec4 back to Vec3 by dividing by w.

Returns None if w is near zero.