For vector operations which mathematically result in a single scalar f (such as XMVector3Length or XMPlaneDotCoord), which of the following extractions from an XMVECTOR is preferred:
1. The very explicit store operation
const XMVECTOR v = ...;
float f;
XMStoreFloat(&f, v);
2. A shorter but less explicit version (note that const can now be used explicitly)
const XMVECTOR v = ...;
const float f = XMVectorGetX(v);
↧