Creates a new vector by combining the x and y-components of two vectors.
XMVECTOR XMVectorMergeXY(
XMVECTOR V1,
XMVECTOR V2
)
V1
Type: XMVECTOR
First vector.
V2
Type: XMVECTOR
Second vector.
Type: XMVECTOR
Returns the merged vector.
The following pseudocode demonstrates the operation of the function:
XMVECTOR Result;
Result.x = V1.x;
Result.y = V2.x;
Result.z = V1.y;
Result.w = V2.y;
return Result;
Header: Declared in directxmath.h.