XMFLOAT3::XMFLOAT3(float,float,float) function (directxmath.h)

Initializes a new instance of XMFLOAT3 from three float arguments.

This constructor initializes a new instance of XMFLOAT3 from a three float arguments.

Note  This constructor is only available under C++.
 

Syntax

void XMFLOAT3(
  float _x,
  float _y,
  float _z
) noexcept;

Parameters

_x

Value to be stored in the x-component (the x member) of the new instance of XMFLOAT3.

_y

Value to be stored in the y-component (the y member) of the new instance of XMFLOAT3.

_z

Value to be stored in the z-component (the z member) of the new instance of XMFLOAT3.

Return value

None

Remarks

The following pseudocode demonstrates the operation of this constructor:


	XMFLOAT3 instance;
	instance.x =  _x;
	instance.y =  _y;
	instance.z =  _z;
    

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h

See also

Reference

XMFLOAT3

XMFLOAT3 Constructors