pub fn axis_angle(mut axis: Vec3, radians: f32) -> Self {
        axis.normalize();
        axis *= (radians * 0.5).sin();

        Self {
            x: axis.x,
            y: axis.y,
            z: axis.z,
            w: (radians * 0.5).cos(),
        }
    }
/// Creates a rotation of `radians` radians around `axis`.
///
/// The rotation will be counter clock wise when looking along the direction of `axis`.
Creates a rotation of `radians` radians around `axis`.
The rotation will be counter clock wise when looking along the direction of `axis`.
Creates a rotation of ` radians ` radians around ` axis ` . The rotation will be counter clock wise when looking along the direction of ` axis ` .
pub fn axis_angle(mut axis: Vec3, radians: f32) -> Self {
        axis.normalize();
        axis *= (radians * 0.5).sin();
        Self {
            x: axis.x,
            y: axis.y,
            z: axis.z,
            w: (radians * 0.5).cos(),
        }
    }
pub fn axis_angle ( mut axis : Vec3 , radians : f32 ) -> Self { axis . normalize ( ) ; axis *= ( radians * 0.5 ) . sin ( ) ; Self { x : axis . x , y : axis . y , z : axis . z , w : ( radians * 0.5 ) . cos ( ) , } }
Creates a rotation of `radians` radians around `axis`.
Creates a rotation of ` radians ` radians around ` axis ` .
axis
Vec3
radians
f32
axis
Vec3
radians
f32