共用方式為


XMSHORTN4::XMSHORTN4 (int16_t,int16_t,int16_t,int16_t) 函式 (directxpackedvector.h)

從四 int16_t 個引數初始化 的新實例 XMSHORTN4

這個建構函式會從四 int16_t 個引數初始化XMSHORTN4的新實例。

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

語法

void XMSHORTN4(
  int16_t _x,
  int16_t _y,
  int16_t _z,
  int16_t _w
) noexcept;

參數

_x

向量的 x 座標值,新 XMSHORTN4 實例的x成員。

_y

向量的 Y 座標值,新 XMSHORTN4 實例的Y成員。

_z

向量的 z 座標值,新 XMSHORTN4 實例的z成員。

_w

向量的 w 座標值,新 XMSHORTN4 實例的 w 成員。

傳回值

備註

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


	XMSHORTN4 instance;

	instance.x = _x;
	instance.y = _y;
	instance.z = _z;
	instance.w = _w;

    

需求

   
目標平台 Windows
標頭 directxpackedvector.h

另請參閱

參考

XMSHORTN4

XMSHORTN4 建構函式