[][src]Function directx_math::XMMatrixLookAtLH

pub fn XMMatrixLookAtLH(
    EyePosition: FXMVECTOR,
    FocusPosition: FXMVECTOR,
    UpDirection: FXMVECTOR
) -> XMMATRIX

Builds a view matrix for a left-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-XMMatrixLookAtLH