Luna::Quaternion::from_axis_angle

Float4 from_axis_angle(const Float3 &axis, f32 angle)

Creates one quaternion from rotation axis and rotation angle.

Parameters

  • in axis

    The rotation axis.

  • in angle

    The rotation angle represented in radians.

Return value

Returns the created quaternion.