Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of mappen te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen om mappen te wijzigen.
Vertegenwoordigt een korte vector van twee floats.
Syntaxis
class float_2;
Leden
Openbare typedefs
| Naam | Description |
|---|---|
value_type |
Openbare constructors
| Naam | Description |
|---|---|
| float_2 constructor | Overbelast. Standaardconstructor, initialiseert alle elementen met 0. |
Openbare methoden
| Naam | Description |
|---|---|
| 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 |
Openbare operators
| Naam | Description |
|---|---|
| float_2::operator- | |
| float_2::operator-- | |
| float_2::operator*= | |
| float_2::operator/= | |
| float_2::operator++ | |
| float_2::operator+= | |
| float_2::operator= | |
| float_2::operator-= |
Openbare constanten
| Naam | Description |
|---|---|
| grootteconstante |
Publieke dataleden
| Naam | Description |
|---|---|
| float_2::g | |
| float_2::gr | |
| float_2::r | |
| float_2::rg | |
| float_2::x | |
| float_2::xy | |
| float_2::y | |
| float_2::yx |
Overnamehiƫrarchie
float_2
Requirements
Koptekst: amp_short_vectors.h
Namespace: Gelijktijdigheid::graphics
float_2
Standaardconstructor, initialiseert alle elementen met 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);
Parameterwaarden
_V0
De waarde voor het initialiseren van element 0.
_V1
De waarde voor het initialiseren van element 1.
_V
De waarde voor initialisatie.
_Andere
Het object dat is gebruikt om te initialiseren.
size
static const int size = 2;