XMFLOAT4 Constructor (float, float, float, float)

Initializes a new instance of XMFLOAT4 from four float arguments.

This constructor initializes a new instance of XMFLOAT4 from four float arguments.

Note

This constructor is only available under C++.

Syntax

public:
XMFLOAT4(
         float _x,
         float _y,
         float _z,
         float _w
)  

Parameters

_x
Type: float 

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

_y
Type: float 

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

_z
Type: float 

Value of the z-coordinate of the vector, the z member of the new XMFLOAT4 instance.

_w
Type: float 

Value of the w-coordinate of the vector, the w member of the new XMFLOAT4 instance.

Remarks

The following pseudocode demonstrates the operation of this constructor:

	XMFLOAT4 instance;

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

Requirements

Header: Declared in directxmath.h.