Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.
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
Standardkonstruktor für XMSHORT4
.
Standardkonstruktor für XMSHORT4.
void XMSHORT4( const XMSHORT4 & unnamedParam1)
Ein Konstruktor für XMSHORT4
.
Ein Konstruktor für XMSHORT4.
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
.
void XMSHORT4( XMSHORT4 && unnamedParam1)
Ein Konstruktor für XMSHORT4
.
Ein Konstruktor für XMSHORT4.
XMSHORT4 & operator=( XMSHORT4 && unnamedParam1)
void XMSHORT4( uint64_t Packed) noexcept
Ein Konstruktor für XMSHORT4
.
Ein Konstruktor für XMSHORT4.
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.
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
.
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.
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
.
XMSHORT4 & operator=( uint64_t Packed) noexcept
Hinweise
XMSHORT4
kann 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 |