Component-wise vector functions

Lists the component-wise vector functions.

In this section

Topic Description
XMVectorInsert
Rotates a vector left by a given number of 32-bit components and insert selected elements of that result into another vector.
XMVectorMergeXY
Creates a new vector by combining the x and y-components of two vectors.
XMVectorMergeZW
Creates a new vector by combining the z and w-components of two vectors.
XMVectorPermute
Permutes the components of two vectors to create a new vector.
XMVectorRotateLeft
Rotates the vector left by a given number of 32-bit elements.
XMVectorRotateRight
Rotates the vector right by a given number of 32-bit elements.
XMVectorSelect
Performs a per-component selection between two input vectors and returns the resulting vector.
XMVectorSelectControl
Defines a control vector for use in XMVectorSelect.
XMVectorShiftLeft
Shifts a vector left by a given number of 32-bit elements, filling the vacated elements with elements from a second vector.
XMVectorSplatW
Replicates the w component of a vector to all of the components.
XMVectorSplatX
Replicates the x component of a vector to all of the components.
XMVectorSplatY
Replicates the y component of a vector to all of the components.
XMVectorSplatZ
Replicates the z component of a vector to all of the components.
XMVectorSwizzle
Swizzles a vector.

 

DirectXMath Library Vector Functions