XMSHORT4-Struktur (directxpackedvector.h)

Ein 4D-Vektor, der aus 16-Bit-Ganzzahlkomponenten mit Vorzeichen besteht.

Eine Liste mit zusätzlichen Funktionen wie Konstruktoren und Operatoren, die bei der Programmierung in C++ verfügbar XMSHORT4 sind, finden Sie unter XMSHORT4-Erweiterungen.

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

Syntax

struct XMSHORT4 {
  union {
    struct {
      int16_t x;
      int16_t y;
      int16_t z;
      int16_t w;
    };
    uint64_t v;
  };
  void       XMSHORT4();
  void       XMSHORT4(
    const XMSHORT4 & unnamedParam1
  );
  XMSHORT4 & operator=(
    const XMSHORT4 & unnamedParam1
  );
  void       XMSHORT4(
    XMSHORT4 && unnamedParam1
  );
  XMSHORT4 & operator=(
    XMSHORT4 && unnamedParam1
  );
  void       XMSHORT4(
    uint64_t Packed
  ) noexcept;
  void       XMSHORT4(
    int16_t _x,
    int16_t _y,
    int16_t _z,
    int16_t _w
  ) noexcept;
  void       XMSHORT4(
    const int16_t *pArray
  ) noexcept;
  void       XMSHORT4(
    float _x,
    float _y,
    float _z,
    float _w
  ) noexcept;
  void       XMSHORT4(
    const float *pArray
  ) noexcept;
  XMSHORT4 & operator=(
    uint64_t Packed
  ) noexcept;
};

Member

x

16-Bit-Ganzzahl im Bereich [-32767, 32767] zur Beschreibung der x-Koordinate des Vektors.

y

16-Bit-Ganzzahl im Bereich [-32767, 32767] zur Beschreibung der y-Koordinate des Vektors.

z

Ganze 16-Bit-Zahl im Bereich [-32767, 32767] zur Beschreibung der z-Koordinate des Vektors.

w

Ganze 16-Bit-Zahl im Bereich [-32767, 32767] zur Beschreibung der w-Koordinate des Vektors.

v

void XMSHORT4()

Standardkonstruktor für XMSHORT4.

Standardkonstruktor für XMSHORT4.

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

void XMSHORT4( const XMSHORT4 & unnamedParam1)

Ein Konstruktor für XMSHORT4.

Ein Konstruktor für XMSHORT4.

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

XMSHORT4 & operator=( const XMSHORT4 & unnamedParam1)

Weist die Daten der Vektorkomponente aus einer instance von XMSHORT4 dem dem aktuellen instance von zuXMSHORT4.

Dieser Operator weist die Daten der Vektorkomponente aus einer instance von XMSHORT4 dem aktuellen instance von zuXMSHORT4.

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

void XMSHORT4( XMSHORT4 && unnamedParam1)

Ein Konstruktor für XMSHORT4.

Ein Konstruktor für XMSHORT4.

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

XMSHORT4 & operator=( XMSHORT4 && unnamedParam1)

void XMSHORT4( uint64_t Packed) noexcept

Ein Konstruktor für XMSHORT4.

Ein Konstruktor für XMSHORT4.

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

void XMSHORT4( int16_t _x, int16_t _y, int16_t _z, int16_t _w) noexcept

Initialisiert eine neue instance von XMSHORT4 vier int16_t Argumenten.

Dieser Konstruktor initialisiert eine neue instance von XMSHORT4 aus vier int16_t Argumenten.

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

void XMSHORT4( const int16_t *pArray) noexcept

Initialisiert eine neue instance von XMSHORT4 aus einem Argument mit vier Elementenarrayint16_t.

Dieser Konstruktor initialisiert eine neue instance von XMSHORT4 aus einem From-Elementarray-Argumentint16_t.

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

void XMSHORT4( float _x, float _y, float _z, float _w) noexcept

Initialisiert eine neue instance von XMSHORT4 vier float Argumenten.

Dieser Konstruktor initialisiert eine neue instance von XMSHORT4 aus vier float Argumenten.

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

void XMSHORT4( const float *pArray) noexcept

Initialisiert eine neue instance von XMSHORT4 aus einem Argument mit vier Elementenarrayfloat.

Dieser Konstruktor initialisiert eine neue instance von XMSHORT4 aus einem Argument mit vier Elementenarrayfloat.

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

XMSHORT4 & operator=( uint64_t Packed) noexcept

Hinweise

XMSHORT4kann mithilfe von XMLoadShort4 in XMVECTOR-Instanzen geladen werden.

Instanzen von XMVECTOR können in einer instance von XMSHORT4 mit XMStoreShort4 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

XMSHORT4-Erweiterungen