float_2-Klasse

Stellt einen kurzen Vektor aus zwei Gleitkommazahlen dar.

Syntax

class float_2;

Member

Öffentliche Typedefs

Name Beschreibung
value_type

Öffentliche Konstruktoren

Name Beschreibung
float_2-Konstruktor Überladen. Standardkonstruktor, initialisiert alle Elemente mit 0.

Öffentliche Methoden

Name Beschreibung
float_2::get_x
float_2::get_xy
float_2::get_y
float_2::get_yx
float_2::ref_g
float_2::ref_r
float_2::ref_x
float_2::ref_y
float_2::set_x
float_2::set_xy
float_2::set_y
float_2::set_yx

Öffentliche Operatoren

Name Beschreibung
float_2::operator-
float_2::operator--
float_2::operator*=
float_2::operator/=
float_2::operator++
float_2::operator+=
float_2::operator=
float_2::operator-=

Öffentliche Konstanten

Name Beschreibung
Größenkonstante

Öffentliche Datenmember

Name Beschreibung
float_2::g
float_2::gr
float_2::r
float_2::rg
float_2::x
float_2::xy
float_2::y
float_2::yx

Vererbungshierarchie

float_2

Anforderungen

Kopfzeile: amp_short_vectors.h

Namespace: Parallelität::graphics

float_2

Standardkonstruktor, initialisiert alle Elemente mit 0.

float_2() restrict(amp,
    cpu);

float_2(
    float _V0,
    float _V1) restrict(amp,
    cpu);

float_2(
    float _V) restrict(amp,
    cpu);

float_2(
    const float_2& _Other) restrict(amp,
    cpu);

explicit inline float_2(
    const uint_2& _Other) restrict(amp,
    cpu);

explicit inline float_2(
    const int_2& _Other) restrict(amp,
    cpu);

explicit inline float_2(
    const unorm_2& _Other) restrict(amp,
    cpu);

explicit inline float_2(
    const norm_2& _Other) restrict(amp,
    cpu);

explicit inline float_2(
    const double_2& _Other) restrict(amp,
    cpu);

Parameter

_V0
Der Wert zum Initialisieren des Elements 0.

_V1
Der Wert zum Initialisieren des Elements 1.

_V
Der Wert für die Initialisierung.

_Other
Das Objekt, das zum Initialisieren verwendet wird.

Größe

static const int size = 2;

Siehe auch

Concurrency::graphics Namespace