XMINT2 structure (directxmath.h)

A 2D vector where each component is a signed integer.

For a list of more functionality such as constructors and operators that are available using XMINT2 when you are programming in C++, see XMINT2 Extensions.

Note  See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.
 

Syntax

struct XMINT2 {
  int32_t  x;
  int32_t  y;
  void     XMINT2();
  void     XMINT2(
    const XMINT2 & unnamedParam1
  );
  XMINT2 & operator=(
    const XMINT2 & unnamedParam1
  );
  void     XMINT2(
    XMINT2 && unnamedParam1
  );
  XMINT2 & operator=(
    XMINT2 && unnamedParam1
  );
  void     XMINT2(
    int32_t _x,
    int32_t _y
  ) noexcept;
  void     XMINT2(
    const int32_t *pArray
  ) noexcept;
  bool     operator==(
    const XMINT2 & unnamedParam1
  );
  auto     operator<=>(
    const XMINT2 & unnamedParam1
  );
};

Members

x

Signed integer value describing the x coordinate of the vector.

y

Signed integer value describing the y coordinate of the vector.

void XMINT2()

Default constructor for XMINT2.

Default constructor for XMINT2.

Note  This constructor is only available under C++.
 

void XMINT2( const XMINT2 & unnamedParam1)

A constructor for XMINT2.

A constructor for XMINT2.

Note  This constructor is only available under C++.

XMINT2 & operator=( const XMINT2 & unnamedParam1)

Assigns the vector component data from one instance of XMINT2 to the current instance of XMINT2.

This operator assigns the vector component data from one instance of XMINT2 to the current instance of XMINT2.

Note  This operator is only available under C++.

void XMINT2( XMINT2 && unnamedParam1)

A constructor for XMINT2.

A constructor for XMINT2.

Note  This constructor is only available under C++.

XMINT2 & operator=( XMINT2 && unnamedParam1)

void XMINT2( int32_t _x, int32_t _y) noexcept

Initializes a new instance of XMINT2 from two int32_t arguments.

This constructor initializes a new instance of XMINT2 from two int32_t arguments.

Note  This constructor is only available under C++.
 

void XMINT2( const int32_t *pArray) noexcept

Initializes a new instance of XMINT2 from a two element int32_t2 array argument.

This constructor initializes a new instance of XMINT2 from a from a two element int32_t array argument.

Note  This constructor is only available under C++.
 

bool operator==( const XMINT2 & unnamedParam1)

auto operator<=>( const XMINT2 & unnamedParam1)

Remarks

You can use XMLoadSInt2 to load XMINT2 into instances of XMVECTOR.

You can use XMStoreSInt2 to store instances of XMVECTOR into an instance of XMINT2.

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

See also

DirectXMath Library Structures

XMINT2 Extensions