Vector Arithmetic Functions

Lists the vector arithmetic functions.

In this section

TopicDescription

Computes the absolute value of each component of an XMVECTOR.

Computes the sum of two vectors.

Computes the ceiling of each component of an XMVECTOR.

Clamps the components of a vector to a specified minimum and maximum range.

Divides one instance of `XMVECTOR` by a second instance, returning the result in a third instance.

Computes the floor of each component of an XMVECTOR.

Performs a per-component test for +/- infinity on a vector.

Performs a per-component NaN test on a vector.

Makes a per-component comparison between two vectors, and returns a vector containing the largest components.

Makes a per-component comparison between two vectors, and returns a vector containing the smallest components.

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

Computes the per-component angle modulo 2PI.

Computes the per-component product of two vectors.

Computes the product of the first two vectors added to the third vector.

Computes the negation of a vector.

Computes the difference of a third vector and the product of the first two vectors.

Computes V1 raised to the power of V2.

Computes the per-component reciprocal of a vector.

Estimates the per-component reciprocal of a vector.

Computes the per-component reciprocal square root of a vector.

Estimates the per-component reciprocal square root of a vector.

Rounds each component of a vector to the nearest integer.

Saturates each component of a vector to the range 0.0f to 1.0f.

Scalar multiplies a vector by a floating-point value.

Computes the per-component square root of a vector.

Estimates the per-component square root of a vector.

Computes the difference of two vectors.

Subtracts two vectors representing angles.

Computes the horizontal sum of the components of an XMVECTOR.

Rounds each component of a vector to the nearest integer value in the direction of zero.

Related topics

DirectXMath Library Vector Functions

Show: