XMMatrixLookAtRH

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

Syntax

XMMATRIX XMMatrixLookAtRH(
         XMVECTOR EyePosition,
         XMVECTOR FocusPosition,
         XMVECTOR UpDirection
)  

Parameters

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

Return value

Type: XMMATRIX 

Returns a view matrix that transforms a point from world space into view space.

Requirements

Header: Declared in directxmath.h.