[]Function rusty_engine::prelude::glm::quat_rotate_normalized_axis

pub fn quat_rotate_normalized_axis<N>(
    q: &Quaternion<N>,
    angle: N,
    axis: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>
) -> Quaternion<N> where
    N: RealField

Rotates a quaternion from a vector of 3 components normalized axis and an angle.

Parameters:

  • q - Source orientation.
  • angle - Angle expressed in radians.
  • axis - Normalized axis of the rotation, must be normalized.