unorm_2 Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Represents a short vector of two unsigned normal numbers.

class unorm_2;  

Public Typedefs

NameDescription
value_type

Public Constructors

NameDescription
unorm_2::unorm_2 ConstructorOverloaded. Default constructor, initializes all elements with 0.

Public Methods

NameDescription
unorm_2::get_x Method
unorm_2::get_xy Method
unorm_2::get_y Method
unorm_2::get_yx Method
unorm_2::ref_g Method
unorm_2::ref_r Method
unorm_2::ref_x Method
unorm_2::ref_y Method
unorm_2::set_x Method
unorm_2::set_xy Method
unorm_2::set_y Method
unorm_2::set_yx Method

Public Operators

NameDescription
unorm_2::operator-- Operator
unorm_2::operator*= Operator
unorm_2::operator/= Operator
unorm_2::operator++ Operator
unorm_2::operator+= Operator
unorm_2::operator= Operator
unorm_2::operator-= Operator

Public Constants

NameDescription
unorm_2::size Constant

Public Data Members

NameDescription
unorm_2::g Data Member
unorm_2::gr Data Member
unorm_2::r Data Member
unorm_2::rg Data Member
unorm_2::x Data Member
unorm_2::xy Data Member
unorm_2::y Data Member
unorm_2::yx Data Member

unorm_2

Header: amp_short_vectors.h

Namespace: Concurrency::graphics

Default constructor, initializes all elements with 0.

unorm_2() restrict(amp,
    cpu);

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

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

 
unorm_2(
    unorm _V) restrict(amp,
    cpu);

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

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

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

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

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

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

 
explicit inline unorm_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.

static const int size = 2;  

Concurrency::graphics Namespace

Show: