Skip to main content

unit

Function unit 

Source
pub fn unit(a: V3) -> Option<V3>
Expand description

a divided by its length; None where the length is 0 or not finite (a vector with no direction), for the caller to say what that means where it can happen.