Computes the per-component floating-point remainder of the quotient of two vectors.
XMVECTOR XMVectorMod(
XMVECTOR V1,
XMVECTOR V2
)
V1
Type: XMVECTOR
Vector dividend.
V2
Type: XMVECTOR
Vector divisor.
Type: XMVECTOR
Returns a vector whose components are the floating-point remainders of the divisions.
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;
Header: Declared in directxmath.h.