Function citro3d_sys::Mtx_LookAt
source · pub unsafe extern "C" fn Mtx_LookAt(
out: *mut C3D_Mtx,
cameraPosition: C3D_FVec,
cameraTarget: C3D_FVec,
cameraUpVector: C3D_FVec,
isLeftHanded: bool
)
Expand description
Look-At matrix, based on DirectX implementation
Note: See https://msdn.microsoft.com/en-us/library/windows/desktop/bb205342
§Arguments
out
(direction out) - Output matrix.cameraPosition
(direction in) - Position of the intended camera in 3D space.cameraTarget
(direction in) - Position of the intended target the camera is supposed to face in 3D space.cameraUpVector
(direction in) - The vector that points straight up depending on the camera’s “Up” direction.isLeftHanded
(direction in) - Whether to build a LH projection