pub fn normalize(self) -> Vec4<T> {
        let len = self.len();
        Vec4 {
            x: self.x / len,
            y: self.y / len,
            z: self.z / len,
            w: self.w / len
        }
    }
/// Normalizes this vector, returning a new vector with a length of 1
/// # Example
/// ```
/// use cable_math::Vec4;
/// let a = Vec4::new(4.0, 9.0, 2.0, 1.0);
/// assert_eq!(1.0, a.normalize().len());
/// ```
Normalizes this vector, returning a new vector with a length of 1
Normalizes this vector returning a new vector with a length of 1
pub fn normalize(self) -> Vec4<T> {
        let len = self.len();
        Vec4 {
            x: self.x / len,
            y: self.y / len,
            z: self.z / len,
            w: self.w / len
        }
    }
pub fn normalize ( self ) -> Vec4 < T > { let len = self . len ( ) ; Vec4 { x : self . x / len , y : self . y / len , z : self . z / len , w : self . w / len } }
Normalizes this vector, returning a new vector with a length of 1
Normalizes this vector returning a new vector with a length of 1
self
self
example
None