共用方式為


XMUSHORTN2::XMUSHORTN2 (constuint16_t*) 函式 (directxpackedvector.h)

從兩個元素uint16_t陣列自變數初始化 XMUSHORTN2 的新實例。

這個建構函 式會從 兩個元素 uint16_t 數位自變數初始化 XMUSHORTN2 的新實例。

注意 此建構函式只能在 C++ 下使用。

語法

void XMUSHORTN2(
  const uint16_t *pArray
) noexcept;

參數

pArray

兩個專案 uint16_t 數位,其中包含用來初始化新實例XMUSHORTN2兩個元件的值。

傳回值

備註

輸入值未正規化。 下列虛擬程式代碼示範此建構函式的作業:

XMUSHORTN2 instance;
instance.x = pArray[0];
instance.y = pArray[1];

規格需求

需求
目標平台 Windows
標頭 directxpackedvector.h

另請參閱

XMUSHORTN2

XMUSHORTN2建構函式