XMUSHORT2-Struktur (directxpackedvector.h)

Beschreibt einen 2D-Vektor, der aus 16-Bit-Ganzzahlkomponenten ohne Vorzeichen besteht.

Eine Liste mit zusätzlichen Funktionen wie Konstruktoren und Operatoren, die beim Programmieren in C++ verfügbar XMUSHORT2 sind, finden Sie unter XMUSHORT2-Erweiterungen.

Hinweis Informationen zu entsprechenden D3DDECLTYPE-, D3DFORMAT- und DXGI_FORMAT-Objekten finden Sie unter DirectXMath Library Type Equivalences.
 

Syntax

struct XMUSHORT2 {
  union {
    struct {
      uint16_t x;
      uint16_t y;
    };
    uint32_t v;
  };
  void        XMUSHORT2();
  void        XMUSHORT2(
    const XMUSHORT2 & unnamedParam1
  );
  XMUSHORT2 & operator=(
    const XMUSHORT2 & unnamedParam1
  );
  void        XMUSHORT2(
    XMUSHORT2 && unnamedParam1
  );
  XMUSHORT2 & operator=(
    XMUSHORT2 && unnamedParam1
  );
  void        XMUSHORT2(
    uint32_t Packed
  ) noexcept;
  void        XMUSHORT2(
    uint16_t _x,
    uint16_t _y
  ) noexcept;
  void        XMUSHORT2(
    const uint16_t *pArray
  ) noexcept;
  void        XMUSHORT2(
    float _x,
    float _y
  ) noexcept;
  void        XMUSHORT2(
    const float *pArray
  ) noexcept;
  XMUSHORT2 & operator=(
    uint32_t Packed
  ) noexcept;
};

Member

x

Ganze Zahl ohne Vorzeichen im Bereich [0, 65535], die die x-Koordinate des Vektors beschreibt.

y

Ganze Zahl ohne Vorzeichen im Bereich [0, 65535], die die y-Koordinate des Vektors beschreibt.

v

void XMUSHORT2()

Standardkonstruktor für XMUSHORT2.

Standardkonstruktor für XMUSHORT2.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.
 

void XMUSHORT2( const XMUSHORT2 & unnamedParam1)

Ein Konstruktor für XMUSHORT2.

Ein Konstruktor für XMUSHORT2.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.

XMUSHORT2 & operator=( const XMUSHORT2 & unnamedParam1)

void XMUSHORT2( XMUSHORT2 && unnamedParam1)

Ein Konstruktor für XMUSHORT2.

Ein Konstruktor für XMUSHORT2.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.

XMUSHORT2 & operator=( XMUSHORT2 && unnamedParam1)

Weist die Daten der Vektorkomponente aus einer instance XMUSHORT2 dem aktuellen instance von XMUSHORT2 zu.

Dieser Operator weist die Daten der Vektorkomponenten aus einer instance XMUSHORT2 dem aktuellen instance von XMUSHORT2 zu.

Hinweis Dieser Operator ist nur unter C++ verfügbar.

void XMUSHORT2( uint32_t Packed) noexcept

Ein Konstruktor für XMUSHORT2.

Ein Konstruktor für XMUSHORT2.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.

void XMUSHORT2( uint16_t _x, uint16_t _y) noexcept

Initialisiert eine neue instance von XMUSHORT2 aus zwei uint16_t Argumenten.

Dieser Konstruktor initialisiert eine neue instance von XMUSHORT2 aus zwei uint16_t Argumenten.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.
 

void XMUSHORT2( const uint16_t *pArray) noexcept

Initialisiert eine neue instance von XMUSHORT2 aus einem Array von Argumentenuint16_t.

Dieser Konstruktor initialisiert eine neue instance von XMUSHORT2 aus einem Array von Argumentenuint16_t.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.

void XMUSHORT2( float _x, float _y) noexcept

Initialisiert eine neue instance von XMUSHORT2 aus zwei float Argumenten.

Dieser Konstruktor initialisiert eine neue instance von XMUSHORT2 aus zwei float Argumenten.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.
 

void XMUSHORT2( const float *pArray) noexcept

Initialisiert eine neue instance von XMUSHORT2 aus einem Argument mit zwei Elementarraysfloat.

Dieser Konstruktor initialisiert eine neue instance von XMUSHORT2 aus einem aus einem Argument mit zwei Elementarraysfloat.

Hinweis Dieser Konstruktor ist nur unter C++ verfügbar.

XMUSHORT2 & operator=( uint32_t Packed) noexcept

Hinweise

XMUSHORT2kann mithilfe von XMLoadUShort2 in XMVECTOR-Instanzen geladen werden.

Instanzen von XMVECTOR können in einer instance von XMUSHORT2 mit XMStoreUShort2 gespeichert werden.

Namespace: Verwenden von DirectX::P ackedVector

Plattformanforderungen

Microsoft Visual Studio 2010 oder Microsoft Visual Studio 2012 mit dem Windows SDK für Windows 8. Unterstützt für Win32-Desktop-Apps, Windows Store-Apps und Windows Phone 8-Apps.

Anforderungen

   
Kopfzeile directxpackedvector.h

Weitere Informationen

DirectXMath-Bibliotheksstrukturen

XMUSHORT2 Erweiterungen