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 flotantes.
Sintaxis
class float_2;
Members
Definiciones de tipos públicas
| Nombre | Descripción |
|---|---|
value_type |
Constructores públicos
| Nombre | Descripción |
|---|---|
| Constructor float_2 | Sobrecargado El constructor predeterminado, inicializa todos los elementos con 0. |
Métodos públicos
| Nombre | Descripción |
|---|---|
| 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 |
Operadores públicos
| Nombre | Descripción |
|---|---|
| float_2::operator- | |
| float_2::operator-- | |
| float_2::operator*= | |
| float_2::operator/= | |
| float_2::operator++ | |
| float_2::operator+= | |
| float_2::operator= | |
| float_2::operator-= |
Constantes públicas
| Nombre | Descripción |
|---|---|
| Constante de tamaño |
Miembros de datos públicos
| Nombre | Descripción |
|---|---|
| float_2::g | |
| float_2::gr | |
| float_2::r | |
| float_2::rg | |
| float_2::x | |
| float_2::xy | |
| float_2::y | |
| float_2::yx |
Jerarquía de herencia
float_2
Requisitos
Encabezado: amp_short_vectors.h
Espacio de nombres: Concurrency::graphics
float_2
El constructor predeterminado, inicializa todos los elementos con 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);
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;