分享方式:


int_2 類別

表示兩個整數的簡短向量。

語法

class int_2;

成員

公用 Typedefs

名稱 描述
value_type

公用建構函式

名稱 描述
int_2建構函式 已多載。 默認建構函式,使用 0 初始化所有元素。

公用方法

名稱 描述
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

公用運算子

名稱 描述
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>>=

公用常數

名稱 描述
size 常數

公用資料成員

名稱 描述
int_2::g
int_2::gr
int_2::r
int_2::rg
int_2::x
int_2::xy
int_2::y
int_2::yx

繼承階層架構

int_2

需求

標頭: amp_short_vectors.h

命名空間: Concurrency::graphics

int_2

默認建構函式,使用 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);

參數

_V0
初始化專案 0 的值。

_V1
要初始化專案 1 的值。

_V
初始化的值。

_其他
用來初始化的物件。

size

static const int size = 2;

另請參閱

Concurrency::graphics 命名空間