pub unsafe extern "C" fn Quat_FromAxisAngle(
    axis: C3D_FVec,
    angle: f32
) -> C3D_FQuat
Expand description

Quaternion, created from a given axis and angle in radians.

§Arguments

  • axis (direction in) - C3D_FVec The axis to rotate around at.
  • angle (direction in) - float The angle to rotate. Unit: Radians

§Returns

Quaternion rotation based on the axis and angle. Axis doesn’t have to be orthogonal.