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(constfloat) |
XMBYTE2::XMBYTE2(const float) (directxpackedvector.h) |
Initializes a new instance of XMBYTE2 from a two-element float array argument. |
|
dxmath |
958e88f3-97cb-4a26-abcf-cbb8185f4716 |
05/06/2019 |
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(), XMBYTE2.XMBYTE2(const float), XMBYTE2::XMBYTE2, XMBYTE2::XMBYTE2(const float), dxmath.xmbyte2_ctor_1 |
directxpackedvector.h |
Windows |
DirectX::PackedVector |
Windows |
19H1 |
|
|
|
|
|
|
Initializes a new instance of XMBYTE2 from a two-element float
array argument.
This constructor initializes a new instance of XMBYTE2 from a two-element float
array argument.
Note This constructor is only available with C++.
Two-element float
array containing the values used to initialize the two components of a new instance of XMBYTE2.
The magnitude of each member of the pArray 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( pArray[0] -127.0 ), 127.0 );
instance.y = (int8_t)min( max( pArray[1] -127.0 ), 127.0 );