Clamps the length of a 4D vector to a given range.
XMVECTOR XMVector4ClampLength(
XMVECTOR V,
float LengthMin,
float LengthMax
)
V
Type: XMVECTOR
4D vector.
LengthMin
Type: float
Minimum clamp length.
LengthMax
Type: float
Maximum clamp length.
Type: XMVECTOR
Returns a 4D vector whose length is clamped to the specified minimum and maximum.
Header: Declared in directxmath.h.