int_2 Class

 

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

Represents a short vector of two integers.

class int_2;  

Public Typedefs

NameDescription
value_type

Public Constructors

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

Public Methods

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

Public Operators

NameDescription
int_2::operator- Operator
int_2::operator-- Operator
int_2::operator%= Operator
int_2::operator&= Operator
int_2::operator*= Operator
int_2::operator/= Operator
int_2::operator^= Operator
int_2::operator|= Operator
int_2::operator~ Operator
int_2::operator++ Operator
int_2::operator+= Operator
int_2::operator<<= Operator
int_2::operator= Operator
int_2::operator-= Operator
int_2::operator>>= Operator

Public Constants

NameDescription
int_2::size Constant

Public Data Members

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

int_2

Header: amp_short_vectors.h

Namespace: Concurrency::graphics

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

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: