[−][src]Function directx_math::XMVector4ClampLength
pub fn XMVector4ClampLength(
V: FXMVECTOR,
LengthMin: f32,
LengthMax: f32
) -> XMVECTOR
Clamps the length of a 4D vector to a given range.
Parameters
V
4D vector.
LengthMin
Minimum clamp length.
LengthMax
Maximum clamp length.
Return value
Returns a 4D vector whose length is clamped to the specified minimum and maximum.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVector4ClampLength