Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

double_2 Class

 

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

Represent a short vector of 2 double's.

class double_2;  

Public Typedefs

NameDescription
value_type

Public Constructors

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

Public Methods

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

Public Operators

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

Public Constants

NameDescription
double_2::size Constant

Public Data Members

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

double_2

Header: amp_short_vectors.h

Namespace: Concurrency::graphics

Default constructor, initializes all elements with 0.

double_2() restrict(amp,
    cpu);

 
double_2(
    double _V0,  
    double _V1) restrict(amp,
    cpu);

 
double_2(
    double _V) restrict(amp,
    cpu);

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

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

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

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

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

 
explicit inline double_2(
    const norm_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:
© 2018 Microsoft