XMHALF2::XMHALF2(HALF,HALF) function (directxpackedvector.h)

Initializes a new instance of XMHALF2 from two HALF arguments.

This constructor initializes a new instance of XMHALF2 from two HALF arguments.

Note  This constructor is only available under C++.
 

Syntax

void XMHALF2(
  HALF _x,
  HALF _y
) noexcept;

Parameters

_x

Value of the x-coordinate of the vector, the x member of the new XMHALF4 instance.

_y

Value of the y-coordinate of the vector, the y member of the new XMHALF4 instance.

Return value

None

Remarks

The following pseudocode demonstrates the operation of this constructor:


	XMHALF2 instance;

	instance.x = _x;
	instance.y = _y;
    

Requirements

Requirement Value
Target Platform Windows
Header directxpackedvector.h

See also

Reference

XMHALF2

XMHALF2 Constructors