Function directx_math::XMVectorRound [−][src]
pub fn XMVectorRound(V: FXMVECTOR) -> XMVECTOR
Rounds each component of a vector to the nearest even integer (known as “Bankers Rounding”).
Parameters
V
Vector whose components should be rounded.
Return value
Returns a vector, each of whose components are rounded to the nearest integer.
Remarks
Banker’s Rounding is used because it is the native vector rounding intrinsic method for both SSE4 and ARMv8 NEON.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVectorRound