Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Representa un vector corto de dos enteros.
Sintaxis
class int_2;
Members
Definiciones de tipos públicas
| Nombre | Descripción |
|---|---|
value_type |
Constructores públicos
| Nombre | Descripción |
|---|---|
| Constructor int_2 | Sobrecargado El constructor predeterminado, inicializa todos los elementos con 0. |
Métodos públicos
| Nombre | Descripción |
|---|---|
| int_2::get_x | |
| int_2::get_xy | |
| int_2::get_y | |
| int_2::get_yx | |
| int_2::ref_g | |
| int_2::ref_r | |
| int_2::ref_x | |
| int_2::ref_y | |
| int_2::set_x | |
| int_2::set_xy | |
| int_2::set_y | |
| int_2::set_yx |
Operadores públicos
| Nombre | Descripción |
|---|---|
| int_2::operator- | |
| int_2::operator-- | |
| int_2::operator%= | |
| int_2::operator&= | |
| int_2::operator*= | |
| int_2::operator/= | |
| int_2::operator^= | |
| int_2::operator|= | |
| int_2::operator~ | |
| int_2::operator++ | |
| int_2::operator+= | |
| int_2::operator<<= | |
| int_2::operator= | |
| int_2::operator-= | |
| int_2::operator>>= |
Constantes públicas
| Nombre | Descripción |
|---|---|
| Constante de tamaño |
Miembros de datos públicos
| Nombre | Descripción |
|---|---|
| int_2::g | |
| int_2::gr | |
| int_2::r | |
| int_2::rg | |
| int_2::x | |
| int_2::xy | |
| int_2::y | |
| int_2::yx |
Jerarquía de herencia
int_2
Requisitos
Encabezado: amp_short_vectors.h
Espacio de nombres: Concurrency::graphics
int_2
El constructor predeterminado, inicializa todos los elementos con 0.
int_2() restrict(amp,
cpu);
int_2(
int _V0,
int _V1) restrict(amp,
cpu);
int_2(
int _V) restrict(amp,
cpu);
int_2(
const int_2& _Other) restrict(amp,
cpu);
explicit inline int_2(
const uint_2& _Other) restrict(amp,
cpu);
explicit inline int_2(
const float_2& _Other) restrict(amp,
cpu);
explicit inline int_2(
const unorm_2& _Other) restrict(amp,
cpu);
explicit inline int_2(
const norm_2& _Other) restrict(amp,
cpu);
explicit inline int_2(
const double_2& _Other) restrict(amp,
cpu);
Parámetros
_V0
Valor para inicializar el elemento 0.
_V1
Valor para inicializar el elemento 1.
_V
Valor de inicialización.
_Other
Objeto usado para inicializar.
tamaño
static const int size = 2;