pub fn normalized(&self) -> Quat {
        let f = 1.0 / self.length();

        Quat {
            x: self.x * f,
            y: self.y * f,
            z: self.z * f,
            w: self.w * f,
        }
    }
/// Calculates and returns the unit quaternion representation of a `Quat`.
/// This results in an an expensive square root calculation.
///
/// # Examples
///
/// ```
/// use gamemath::Quat;
///
/// let q: Quat = (1.0, 2.0, 2.0, 4.0).into();
///
/// assert_eq!(q.normalized(), (0.2, 0.4, 0.4, 0.8).into());
Calculates and returns the unit quaternion representation of a `Quat`.
This results in an an expensive square root calculation.
Calculates and returns the unit quaternion representation of a ` Quat ` . This results in an an expensive square root calculation .
pub fn normalized(&self) -> Quat {
        let f = 1.0 / self.length();
        Quat {
            x: self.x * f,
            y: self.y * f,
            z: self.z * f,
            w: self.w * f,
        }
    }
pub fn normalized ( & self ) -> Quat { let f = 1.0 / self . length ( ) ; Quat { x : self . x * f , y : self . y * f , z : self . z * f , w : self . w * f , } }
Calculates and returns the unit quaternion representation of a `Quat`.
Calculates and returns the unit quaternion representation of a ` Quat ` .
&self
&self
examples
```
use gamemath::Quat.




` ` ` use gamemath :: Quat .