/// Create a normalized copy, or None if the magnitude is zero
Create a normalized copy, or None if the magnitude is zero
Create a normalized copy or None if the magnitude is zero
pub fn normalized(self) -> Option<Vec3f> {
        let m = self.magnitude();
        if m == 0.0 {
            None
        }
        else {
            let f = 1.0 / m;
            Some(self * f)
        }
    }
pub fn normalized ( self ) -> Option < Vec3f > { let m = self . magnitude ( ) ; if m == 0.0 { None } else { let f = 1.0 / m ; Some ( self * f ) } }
Create a normalized copy, or None if the magnitude is zero
Create a normalized copy or None if the magnitude is zero
self