Function nalgebra_glm::quat_rotate_normalized_axis [−][src]
pub fn quat_rotate_normalized_axis<T: RealField>(
q: &Qua<T>,
angle: T,
axis: &TVec3<T>
) -> Qua<T>
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.