다음을 통해 공유


norm_2 Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Represents a short vector of two normal numbers.

Syntax

class norm_2;  

Members

Public Typedefs

Name Description
value_type

Public Constructors

Name Description
norm_2::norm_2 Constructor Overloaded. Default constructor, initializes all elements with 0.

Public Methods

Name Description
norm_2::get_x Method
norm_2::get_xy Method
norm_2::get_y Method
norm_2::get_yx Method
norm_2::ref_g Method
norm_2::ref_r Method
norm_2::ref_x Method
norm_2::ref_y Method
norm_2::set_x Method
norm_2::set_xy Method
norm_2::set_y Method
norm_2::set_yx Method

Public Operators

Name Description
norm_2::operator- Operator
norm_2::operator-- Operator
norm_2::operator*= Operator
norm_2::operator/= Operator
norm_2::operator++ Operator
norm_2::operator+= Operator
norm_2::operator= Operator
norm_2::operator-= Operator

Public Constants

Name Description
norm_2::size Constant

Public Data Members

Name Description
norm_2::g Data Member
norm_2::gr Data Member
norm_2::r Data Member
norm_2::rg Data Member
norm_2::x Data Member
norm_2::xy Data Member
norm_2::y Data Member
norm_2::yx Data Member

Inheritance Hierarchy

norm_2

Requirements

Header: amp_short_vectors.h

Namespace: Concurrency::graphics

norm_2::norm_2 Constructor

Default constructor, initializes all elements with 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);

Parameters

_V0
The value to initialize element 0.

_V1
The value to initialize element 1.

_V
The value for initialization.

_Other
The object used to initialize.

norm_2::size Constant

static const int size = 2;  

See Also

Concurrency::graphics Namespace