Vector initialization functions

Lists the vector initialization functions.

In this section

Topic Description
XMVectorFalseInt
Returns the zero (false) vector.
XMVectorReplicate
Replicates a floating-point value into all four components of a vector.
XMVectorReplicateInt
Replicates an integer value into all four components of a vector.
XMVectorReplicateIntPtr
Replicates an integer value referenced by a pointer, into all four components of a vector.
XMVectorReplicatePtr
Replicates a floating-point value referenced by pointer into all four components of a vector.
XMVectorSet
Creates a vector using four floating-point values.
XMVectorSetBinaryConstant
Creates a vector, each of whose components is either 0.0f or 1.0f.
XMVectorSetInt
Creates a vector with unsigned integer components.
XMVectorSplatConstant
Creates a vector with identical floating-point components. Each component is a constant divided by two raised to an integer exponent.
XMVectorSplatConstantInt
Creates a vector with identical integer components.
XMVectorSplatEpsilon
Returns a vector, each of whose components are epsilon (1.192092896e-7).
XMVectorSplatInfinity
Returns a vector, each of whose components are infinity (0x7F800000).
XMVectorSplatOne
Returns a vector, each of whose components are one.
XMVectorSplatQNaN
Returns a vector, each of whose components are QNaN (0x7CF00000).
XMVectorSplatSignMask
Returns a vector, each of whose components are the sign mask (0x80000000).
XMVectorTrueInt
Returns a vector, each of whose components represents true (0xFFFFFFFF).
XMVectorZero
Creates the zero vector.

 

DirectXMath Library Vector Functions