XMMatrixTranslationFromVector

Builds a translation matrix from a vector.

Syntax

XMMATRIX XMMatrixTranslationFromVector(
         XMVECTOR Offset
)  

Parameters

Offset
Type: XMVECTOR 

3D vector describing the translations along the x-axis, y-axis, and z-axis.

Return value

Type: XMMATRIX 

Returns the translation matrix.

Requirements

Header: Declared in directxmath.h.