Builds a view matrix for a right-handed coordinate system using a camera position, an up direction, and a focal point.
XMMATRIX XMMatrixLookAtRH(
XMVECTOR EyePosition,
XMVECTOR FocusPosition,
XMVECTOR UpDirection
)
EyePosition
Type: XMVECTOR
Position of the camera.
FocusPosition
Type: XMVECTOR
Position of the focal point.
UpDirection
Type: XMVECTOR
Up direction of the camera, typically < 0.0f, 1.0f, 0.0f >.
Type: XMMATRIX
Returns a view matrix that transforms a point from world space into view space.
Header: Declared in directxmath.h.