Skip to content

Latest commit

 

History

History
95 lines (69 loc) · 2.82 KB

nf-directxpackedvector-xmbyte2-xmbyte2(float_float).md

File metadata and controls

95 lines (69 loc) · 2.82 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxpackedvector.XMBYTE2.XMBYTE2(float,float)
XMBYTE2::XMBYTE2(float,float) (directxpackedvector.h)
Initializes a new instance of XMBYTE2 from two float arguments.
XMBYTE2
XMBYTE2 constructor [DirectX Math Support APIs]
XMBYTE2 constructor [DirectX Math Support APIs]
XMBYTE2 structure
XMBYTE2 structure [DirectX Math Support APIs]
XMBYTE2 constructor
XMBYTE2.XMBYTE2
XMBYTE2.XMBYTE2(float
float)
XMBYTE2::XMBYTE2
XMBYTE2::XMBYTE2(float
float)
dxmath.xmbyte2_ctor_4
dxmath\xmbyte2_ctor_4.htm
dxmath
M:Microsoft.directx_sdk.reference.XMBYTE2.#ctor(float,float)
12/05/2018
XMBYTE2, XMBYTE2 constructor [DirectX Math Support APIs], XMBYTE2 constructor [DirectX Math Support APIs],XMBYTE2 structure, XMBYTE2 structure [DirectX Math Support APIs],XMBYTE2 constructor, XMBYTE2.XMBYTE2, XMBYTE2.XMBYTE2(float,float), XMBYTE2::XMBYTE2, XMBYTE2::XMBYTE2(float,float), dxmath.xmbyte2_ctor_4
directxpackedvector.h
Windows
DirectX::PackedVector
Windows
19H1
XMBYTE2::XMBYTE2
directxpackedvector/XMBYTE2::XMBYTE2
c++
APIRef
kbSyntax
COM
DirectXPackedVector.h
XMBYTE2.XMBYTE2

XMBYTE2::XMBYTE2(float,float)

-description

Initializes a new instance of XMBYTE2 from two float arguments.

This constructor initializes a new instance of XMBYTE2 from two float arguments.

Note  This constructor is only available with C++.
 

-parameters

-param _x

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

-param _y

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

-remarks

The magnitude of each argument to the constructor will be clamped to the range supported by an 8-bit signed integer [-127.0, 127.0].

The following pseudocode demonstrates the operation of this constructor:


	XMBYTE2 instance;

	instance.x = (int8_t)min( max( _x, -127.0 ), 127.0 );
	instance.y = (int8_t)min( max( _y, -127.0 ), 127.0 );
    

-see-also

Reference

XMBYTE2

XMBYTE2 Constructors