norm_2 类

表示由 2 个普通数字组成的短向量。

语法

class norm_2;

成员

公共 Typedef

名称 描述
value_type

公共构造函数

名称 描述
norm_2 构造函数 已重载。 默认构造函数,使用 0 初始化所有元素。

公共方法

名称 描述
norm_2::get_x
norm_2::get_xy
norm_2::get_y
norm_2::get_yx
norm_2::ref_g
norm_2::ref_r
norm_2::ref_x
norm_2::ref_y
norm_2::set_x
norm_2::set_xy
norm_2::set_y
norm_2::set_yx

公共运算符

“属性” 描述
norm_2::operator-
norm_2::operator--
norm_2::operator*=
norm_2::operator/=
norm_2::operator++
norm_2::operator+=
norm_2::operator=
norm_2::operator-=

公共常量

“属性” 描述
size 常量

公共数据成员

“属性” 描述
norm_2::g
norm_2::gr
norm_2::r
norm_2::rg
norm_2::x
norm_2::xy
norm_2::y
norm_2::yx

继承层次结构

norm_2

要求

标头:amp_short_vectors.h

命名空间:Concurrency::graphics

norm_2

默认构造函数,使用 0 初始化所有元素。

norm_2() restrict(amp,
    cpu);

norm_2(
    norm _V0,
    norm _V1) restrict(amp,
    cpu);

norm_2(
    float _V0,
    float _V1) restrict(amp,
    cpu);

norm_2(
    unorm _V0,
    unorm _V1) restrict(amp,
    cpu);

norm_2(
    norm _V) restrict(amp,
    cpu);

explicit norm_2(
    float _V) restrict(amp,
    cpu);

norm_2(
    const norm_2& _Other) restrict(amp,
    cpu);

explicit inline norm_2(
    const uint_2& _Other) restrict(amp,
    cpu);

explicit inline norm_2(
    const int_2& _Other) restrict(amp,
    cpu);

explicit inline norm_2(
    const float_2& _Other) restrict(amp,
    cpu);

explicit inline norm_2(
    const unorm_2& _Other) restrict(amp,
    cpu);

explicit inline norm_2(
    const double_2& _Other) restrict(amp,
    cpu);

参数

_V0
要初始化元素 0 的值。

_V1
要初始化元素 1 的值。

_V
初始化的值。

_Other
用于初始化的对象。

大小

static const int size = 2;

另请参阅

Concurrency::graphics 命名空间