Megjegyzés
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhat bejelentkezni vagy módosítani a címtárat.
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhatja módosítani a címtárat.
Két normál szám rövid vektorát jelöli.
Szemantika
class norm_2;
Tagok
Nyilvános típustdefiníciók
| Név | Description |
|---|---|
value_type |
Nyilvános konstruktorok
| Név | Description |
|---|---|
| norm_2 Konstruktor | Túlterhelt. Az alapértelmezett konstruktor az összes elemet inicializálja 0-val. |
Nyilvános módszerek
| Név | Description |
|---|---|
| norm_2::get_x | |
| norm_2::get_xy | |
| norm_2::get_y | |
| norm_2::get_yx | |
| norm_2::ref_g | |
| norm_2::ref_r | |
| norm_2::ref_x | |
| norm_2::ref_y | |
| norm_2::set_x | |
| norm_2::set_xy | |
| norm_2::set_y | |
| norm_2::set_yx |
Nyilvános operátorok
| Név | Description |
|---|---|
| norm_2::operátor- | |
| norm_2::operátor-- | |
| norm_2::operátor*= | |
| norm_2::operátor/= | |
| norm_2::operátor++ | |
| norm_2::operátor+= | |
| norm_2::operátor= | |
| norm_2::operátor-= |
Nyilvános állandók
| Név | Description |
|---|---|
| méretállandó |
Nyilvános adatok tagjai
| Név | Description |
|---|---|
| norm_2::g | |
| norma_2::gr | |
| norm_2::r | |
| norm_2::rg | |
| norm_2::x | |
| norm_2::xy | |
| norm_2::y | |
| norm_2::yx |
Öröklési hierarchia
norm_2
Requirements
Fejléc: amp_short_vectors.h
Namespace: Párhuzamosság::grafika
norm_2
Az alapértelmezett konstruktor az összes elemet inicializálja 0-val.
norm_2() restrict(amp,
cpu);
norm_2(
norm _V0,
norm _V1) restrict(amp,
cpu);
norm_2(
float _V0,
float _V1) restrict(amp,
cpu);
norm_2(
unorm _V0,
unorm _V1) restrict(amp,
cpu);
norm_2(
norm _V) restrict(amp,
cpu);
explicit norm_2(
float _V) restrict(amp,
cpu);
norm_2(
const norm_2& _Other) restrict(amp,
cpu);
explicit inline norm_2(
const uint_2& _Other) restrict(amp,
cpu);
explicit inline norm_2(
const int_2& _Other) restrict(amp,
cpu);
explicit inline norm_2(
const float_2& _Other) restrict(amp,
cpu);
explicit inline norm_2(
const unorm_2& _Other) restrict(amp,
cpu);
explicit inline norm_2(
const double_2& _Other) restrict(amp,
cpu);
Paraméterek
_V0
A 0. elem inicializálandó értéke.
_V1
Az 1. elem inicializálandó értéke.
_V
Az inicializálás értéke.
_Más
Az inicializáláshoz használt objektum.
size
static const int size = 2;