Function directx_math::XMVectorDivide[][src]

pub fn XMVectorDivide(V1: FXMVECTOR, V2: FXMVECTOR) -> XMVECTOR

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

Parameters

V1 XMVECTOR instance whose components are the dividends of the division operation.

V2 XMVECTOR instance whose components are the divisors of the division operation.

Return value

XMVECTOR instance whose components are the quotient of the division of each component of V1 by each corresponding component of V2.

Remarks

The following code is generally faster than calling XMVectorDivide if the loss of precision is tolerable.

XMVECTOR R = XMVectorReciprocalEst(V2)
XMVectorMultiply(V1,R)

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVectorDivide