XMVectorMod

Computes the per-component floating-point remainder of the quotient of two vectors.

Syntax

XMVECTOR XMVectorMod(
         XMVECTOR V1,
         XMVECTOR V2
)  

Parameters

V1
Type: XMVECTOR 

Vector dividend.

V2
Type: XMVECTOR 

Vector divisor.

Return value

Type: XMVECTOR 

Returns a vector whose components are the floating-point remainders of the divisions.

Remarks

The following pseudocode demonstrates the operation of the function:

XMVECTOR Result;

Result.x = fmod(V1.x, V2.x);
Result.y = fmod(V1.y, V2.y);
Result.z = fmod(V1.z, V2.z);
Result.w = fmod(V1.w, V2.w);

return Result;  

Requirements

Header: Declared in directxmath.h.