Function quat_rotate_normalized_axis

Source
pub fn quat_rotate_normalized_axis<T>(
    q: &Quaternion<T>,
    angle: T,
    axis: &Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>,
) -> Quaternion<T>
where T: RealNumber,
Expand description

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.