Computes the per-component square root of a vector.
XMVECTOR XMVectorSqrt(
XMVECTOR V
)
V
Type: XMVECTOR
Vector whose square root is computed.
Type: XMVECTOR
Returns a vector. Each component is the square-root of the corresponding component of V.
The square-root operation handles special input values as follows.
| Input Value | Return Value |
|---|---|
| +Infinity | +Infinity |
| +0.0f | +0.0f |
| -0.0f | -0.0f |
| < 0.0f | QNaN |
Header: Declared in directxmath.h.