[][src]Function directx_math::XMMatrixLookToRH

pub fn XMMatrixLookToRH(
    EyePosition: FXMVECTOR,
    EyeDirection: FXMVECTOR,
    UpDirection: FXMVECTOR
) -> XMMATRIX

Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a camera direction.

Parameters

EyePosition Position of the camera.

EyeDirection Direction of the camera.

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-XMMatrixLookToRH