Function citro3d_sys::Quat_LookAt

source ·
pub unsafe extern "C" fn Quat_LookAt(
    source: C3D_FVec,
    target: C3D_FVec,
    forwardVector: C3D_FVec,
    upVector: C3D_FVec
) -> C3D_FQuat
Expand description

Quaternion Look-At

§Arguments

  • source (direction in) - C3D_FVec Starting position. Origin of rotation.
  • target (direction in) - C3D_FVec Target position to orient towards.
  • forwardVector (direction in) - C3D_FVec The Up vector.
  • upVector (direction in) - C3D_FVec The Up vector.

§Returns

Quaternion rotation.