XMUINT2 structure (directxmath.h)
A 2D vector where each component is an unsigned integer.
For a list of additional functionality such as constructors and operators that are available using XMUINT2
when you
are programming in C++, see XMUINT2 Extensions.
Syntax
struct XMUINT2 {
uint32_t x;
uint32_t y;
void XMUINT2();
void XMUINT2(
const XMUINT2 & unnamedParam1
);
XMUINT2 & operator=(
const XMUINT2 & unnamedParam1
);
void XMUINT2(
XMUINT2 && unnamedParam1
);
XMUINT2 & operator=(
XMUINT2 && unnamedParam1
);
void XMUINT2(
uint32_t _x,
uint32_t _y
) noexcept;
void XMUINT2(
const uint32_t *pArray
) noexcept;
bool operator==(
const XMUINT2 & unnamedParam1
);
auto operator<=>(
const XMUINT2 & unnamedParam1
);
};
Members
x
Unsigned integer value describing the x-coordinate of the vector.
y
Unsigned integer value describing the y-coordinate of the vector.
Default constructor for XMUINT2
.
Default constructor for XMUINT2.
void XMUINT2( const XMUINT2 & unnamedParam1)
A constructor for XMUINT2
.
A constructor for XMUINT2.
XMUINT2 & operator=( const XMUINT2 & unnamedParam1)
Assigns the vector component data from one instance of XMUINT2
to the current instance of XMUINT2
.
This operator assigns the vector component data from one instance of XMUINT2 to the current instance of XMUINT2
.
void XMUINT2( XMUINT2 && unnamedParam1)
A constructor for XMUINT2
.
A constructor for XMUINT2.
XMUINT2 & operator=( XMUINT2 && unnamedParam1)
void XMUINT2( uint32_t _x, uint32_t _y) noexcept
Initializes a new instance of XMUINT2
from two uint32_t
arguments.
This constructor initializes a new instance of XMUINT2 from two
uint32_t
arguments.
void XMUINT2( const uint32_t *pArray) noexcept
Initializes a new instance of XMUINT2 from a two element uint32_t
array argument.
This constructor initializes a new instance of XMUINT2 from a two element uint32_t
array argument.
bool operator==( const XMUINT2 & unnamedParam1)
auto operator<=>( const XMUINT2 & unnamedParam1)
Remarks
You can use XMLoadUInt2 to load XMUINT2
into instances
of XMVECTOR.
You can use XMStoreUInt2 to store instances of XMVECTOR
into an instance of XMUINT2
.
Namespace: Use DirectX
Platform Requirements
Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.Requirements
Requirement | Value |
---|---|
Header | directxmath.h |