다음을 통해 공유


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

Public 연산자

이름 설명
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>>=

공용 상수

이름 설명
크기 상수

공용 데이터 멤버

이름 설명
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

네임스페이스: 동시성::그래픽

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
초기화에 대한 값입니다.

_Other
초기화하는 데 사용되는 개체입니다.

size

static const int size = 2;

참고 항목

Concurrency::graphics 네임스페이스