XMVectorSubtract

Computes the difference of two vectors.

Syntax

XMVECTOR XMVectorSubtract(
         XMVECTOR V1,
         XMVECTOR V2
)  

Parameters

V1
Type: XMVECTOR 

First vector.

V2
Type: XMVECTOR 

Vector to subtract from V1

Return value

Type: XMVECTOR 

Returns a vector that is the difference of V1 and V2.

Requirements

Header: Declared in directxmath.h.