Skip to main content

get_length_and_normalize

Function get_length_and_normalize 

Source
pub fn get_length_and_normalize(length_out: &mut f32, a: Vec3) -> Vec3
Expand description

Normalize a vector and return the length. Returns a zero vector if the input is very small.