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. |
|
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 |
|
|
|
|
|
|
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++.
Value of the x-coordinate of the vector, the x member of the new XMBYTE2
instance.
Value of the y-coordinate of the vector, the y member of the new XMBYTE2
instance.
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 );
Reference