XMVectorAndInt 函式 (directxmath.h)

計算兩個向量的邏輯 AND,將每個元件視為不帶正負號的整數。

語法

XMVECTOR XM_CALLCONV XMVectorAndInt(
  [in] FXMVECTOR V1,
  [in] FXMVECTOR V2
) noexcept;

參數

[in] V1

第一個向量。

[in] V2

第二個向量。

傳回值

傳回向量,其中每個元件都是 V1V2對應元件的邏輯 AND。

備註

下列虛擬程式碼示範函式的作業:

XMVECTOR Result;

Result.x = V1.x & V2.x;
Result.y = V1.y & V2.y;
Result.z = V1.z & V2.z;
Result.w = V1.w & V2.w;

return Result;

平臺需求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 搭配 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。

需求

   
目標平台 Windows
標頭 directxmath.h (包含 DirectXMath.h)

另請參閱

位向量函式

XMVectorAndCInt