[−][src]Function directx_math::XMMatrixLookAtRH
pub fn XMMatrixLookAtRH(
EyePosition: FXMVECTOR,
FocusPosition: FXMVECTOR,
UpDirection: FXMVECTOR
) -> XMMATRIX
Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a focal point.
Parameters
EyePosition
Position of the camera.
FocusPosition
Position of the focal point.
UpDirection
Up direction of the camera, typically < 0.0
, 1.0
, 0.0
>.
Return value
Returns a view matrix that transforms a point from world space into view space.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixLookAtRH