다음을 통해 공유


float_2 클래스

두 부동 소수점의 짧은 벡터를 나타냅니다.

구문

class float_2;

멤버

공용 Typedefs

이름 설명
value_type

공용 생성자

속성 설명
float_2 생성자 오버로드됨. 기본 생성자는 0을 사용하여 모든 요소를 초기화합니다.

공용 메서드

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

Public 연산자

이름 설명
float_2::operator-
float_2::operator--
float_2::operator*=
float_2::operator/=
float_2::operator++
float_2::operator+=
float_2::operator=
float_2::operator-=

공용 상수

이름 설명
크기 상수

공용 데이터 멤버

이름 설명
float_2::g
float_2::gr
float_2::r
float_2::rg
float_2::x
float_2::xy
float_2::y
float_2::yx

상속 계층 구조

float_2

요구 사항

헤더: amp_short_vectors.h

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

float_2

기본 생성자는 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);

매개 변수

_V0
요소 0을 초기화할 값입니다.

_V1
요소 1을 초기화할 값입니다.

_V
초기화에 대한 값입니다.

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

size

static const int size = 2;

참고 항목

Concurrency::graphics 네임스페이스