STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
Concurrency::graphics::norm_2 Class Reference

Represent a short vector of 2 norm's. More...

#include <amp_short_vectors.h>

Public Types

typedef norm value_type
 

Public Member Functions

 __declspec (property(get=get_x, put=set_x)) norm x
 Property for accessing element 0 of this norm_2 as a norm. More...
 
 __declspec (property(get=get_x, put=set_x)) norm r
 Property for accessing element 0 of this norm_2 as a norm. More...
 
norm get_x () const __GPU
 Returns element 0 of this norm_2. More...
 
normref_x () __GPU
 Returns reference to element 0 of this norm_2. More...
 
normref_r () __GPU
 Returns reference to element 0 of this norm_2. More...
 
void set_x (norm _Value) __GPU
 Set element 0 of this norm_2 with a norm. More...
 
 __declspec (property(get=get_y, put=set_y)) norm y
 Property for accessing element 1 of this norm_2 as a norm. More...
 
 __declspec (property(get=get_y, put=set_y)) norm g
 Property for accessing element 1 of this norm_2 as a norm. More...
 
norm get_y () const __GPU
 Returns element 1 of this norm_2. More...
 
normref_y () __GPU
 Returns reference to element 1 of this norm_2. More...
 
normref_g () __GPU
 Returns reference to element 1 of this norm_2. More...
 
void set_y (norm _Value) __GPU
 Set element 1 of this norm_2 with a norm. More...
 
 norm_2 () __GPU
 Default constructor, initializes all elements with 0. More...
 
 norm_2 (norm _V0, norm _V1) __GPU
 Constructor. More...
 
 norm_2 (float _V0, float _V1) __GPU
 Constructor. More...
 
 norm_2 (unorm _V0, unorm _V1) __GPU
 Constructor. More...
 
 norm_2 (norm _V) __GPU
 Constructor. More...
 
 norm_2 (float _V) __GPU
 
 norm_2 (const norm_2 &_Other) __GPU
 Copy constructor. More...
 
norm_2operator= (const norm_2 &_Other) __GPU
 
 norm_2 (const uint_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 norm_2 (const int_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 norm_2 (const float_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 norm_2 (const unorm_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 norm_2 (const double_2 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
norm_2 operator- () const __GPU
 
norm_2operator++ () __GPU
 
norm_2 operator++ (int) __GPU
 
norm_2operator-- () __GPU
 
norm_2 operator-- (int) __GPU
 
norm_2operator+= (const norm_2 &_Other) __GPU
 
norm_2operator-= (const norm_2 &_Other) __GPU
 
norm_2operator*= (const norm_2 &_Other) __GPU
 
norm_2operator/= (const norm_2 &_Other) __GPU
 
 __declspec (property(get=get_xy, put=set_xy)) norm_2 xy
 Property for accessing element 0, and 1 of this norm_2 as a norm_2. More...
 
 __declspec (property(get=get_xy, put=set_xy)) norm_2 rg
 Property for accessing element 0, and 1 of this norm_2 as a norm_2. More...
 
norm_2 get_xy () const __GPU
 Returns a norm_2 that is composed of element 0, and element 1 of this norm_2. More...
 
void set_xy (const norm_2 &_Value) __GPU
 Set element 0, and 1 of this norm_2 with a norm_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) norm_2 yx
 Property for accessing element 1, and 0 of this norm_2 as a norm_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) norm_2 gr
 Property for accessing element 1, and 0 of this norm_2 as a norm_2. More...
 
norm_2 get_yx () const __GPU
 Returns a norm_2 that is composed of element 1, and element 0 of this norm_2. More...
 
void set_yx (const norm_2 &_Value) __GPU
 Set element 1, and 0 of this norm_2 with a norm_2. More...
 

Static Public Attributes

static const int size = 2
 

Private Attributes

value_type _M_x
 
value_type _M_y
 

Static Private Attributes

static const _Short_vector_base_type_id _Base_type_id = _Norm_type
 

Detailed Description

Represent a short vector of 2 norm's.

Member Typedef Documentation

Constructor & Destructor Documentation

Concurrency::graphics::norm_2::norm_2 ( )
inline

Default constructor, initializes all elements with 0.

15046  {
15047  _M_x = norm(0.0f);
15048  _M_y = norm(0.0f);
15049  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( norm  _V0,
norm  _V1 
)
inline

Constructor.

Parameters
_V0The value to initialize element 0.
_V1The value to initialize element 1.
15061  {
15062  _M_x = _V0;
15063  _M_y = _V1;
15064  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( float  _V0,
float  _V1 
)
inline

Constructor.

Parameters
_V0The value to initialize element 0.
_V1The value to initialize element 1.
15076  {
15077  _M_x = norm(_V0);
15078  _M_y = norm(_V1);
15079  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( unorm  _V0,
unorm  _V1 
)
inline

Constructor.

Parameters
_V0The value to initialize element 0.
_V1The value to initialize element 1.
15091  {
15092  _M_x = _V0;
15093  _M_y = _V1;
15094  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( norm  _V)
inline

Constructor.

Parameters
_VThe value for initialization.
15103  {
15104  _M_x = _V;
15105  _M_y = _V;
15106  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( float  _V)
inlineexplicit
15109  {
15110  _M_x = norm(_V);
15111  _M_y = norm(_V);
15112  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( const norm_2 _Other)
inline

Copy constructor.

Parameters
_OtherThe object to copy from.
15121  {
15122  *this = _Other;
15123  }
Concurrency::graphics::norm_2::norm_2 ( const uint_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22550  {
22551  uint_2 _Value = _Other;
22552  _M_x = static_cast<value_type>(_Value.x);
22553  _M_y = static_cast<value_type>(_Value.y);
22554  }
norm value_type
Definition: amp_short_vectors.h:14932
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( const int_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22557  {
22558  int_2 _Value = _Other;
22559  _M_x = static_cast<value_type>(_Value.x);
22560  _M_y = static_cast<value_type>(_Value.y);
22561  }
norm value_type
Definition: amp_short_vectors.h:14932
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( const float_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22564  {
22565  float_2 _Value = _Other;
22566  _M_x = static_cast<value_type>(_Value.x);
22567  _M_y = static_cast<value_type>(_Value.y);
22568  }
norm value_type
Definition: amp_short_vectors.h:14932
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( const unorm_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22571  {
22572  unorm_2 _Value = _Other;
22573  _M_x = static_cast<value_type>(_Value.x);
22574  _M_y = static_cast<value_type>(_Value.y);
22575  }
norm value_type
Definition: amp_short_vectors.h:14932
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
Concurrency::graphics::norm_2::norm_2 ( const double_2 _Other)
inlineexplicit

Constructor. Each element is initialized by casting from the corresponding element in _Other.

Parameters
_OtherThe object used to initialize.
22578  {
22579  double_2 _Value = _Other;
22580  _M_x = static_cast<value_type>(_Value.x);
22581  _M_y = static_cast<value_type>(_Value.y);
22582  }
norm value_type
Definition: amp_short_vectors.h:14932
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937

Member Function Documentation

Concurrency::graphics::norm_2::__declspec ( property(get=get_x, put=set_x )

Property for accessing element 0 of this norm_2 as a norm.

Concurrency::graphics::norm_2::__declspec ( property(get=get_x, put=set_x )

Property for accessing element 0 of this norm_2 as a norm.

Concurrency::graphics::norm_2::__declspec ( property(get=get_y, put=set_y )

Property for accessing element 1 of this norm_2 as a norm.

Concurrency::graphics::norm_2::__declspec ( property(get=get_y, put=set_y )

Property for accessing element 1 of this norm_2 as a norm.

Concurrency::graphics::norm_2::__declspec ( property(get=get_xy, put=set_xy )

Property for accessing element 0, and 1 of this norm_2 as a norm_2.

Concurrency::graphics::norm_2::__declspec ( property(get=get_xy, put=set_xy )

Property for accessing element 0, and 1 of this norm_2 as a norm_2.

Concurrency::graphics::norm_2::__declspec ( property(get=get_yx, put=set_yx )

Property for accessing element 1, and 0 of this norm_2 as a norm_2.

Concurrency::graphics::norm_2::__declspec ( property(get=get_yx, put=set_yx )

Property for accessing element 1, and 0 of this norm_2 as a norm_2.

norm Concurrency::graphics::norm_2::get_x ( ) const
inline

Returns element 0 of this norm_2.

Returns
Element 0 of this norm_2.
14956  {
14957  return _M_x;
14958  }
value_type _M_x
Definition: amp_short_vectors.h:14937
norm_2 Concurrency::graphics::norm_2::get_xy ( ) const
inline

Returns a norm_2 that is composed of element 0, and element 1 of this norm_2.

Returns
a norm_2.
15271  {
15272  return norm_2(_M_x,_M_y);
15273  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm Concurrency::graphics::norm_2::get_y ( ) const
inline

Returns element 1 of this norm_2.

Returns
Element 1 of this norm_2.
15006  {
15007  return _M_y;
15008  }
value_type _M_y
Definition: amp_short_vectors.h:14938
norm_2 Concurrency::graphics::norm_2::get_yx ( ) const
inline

Returns a norm_2 that is composed of element 1, and element 0 of this norm_2.

Returns
a norm_2.
15303  {
15304  return norm_2(_M_y,_M_x);
15305  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator*= ( const norm_2 _Other)
inline
15236  {
15237  norm_2 _Value1 = *this;
15238  norm_2 _Value2 = _Other;
15239  _Value1.x *= _Value2.x;
15240  _Value1.y *= _Value2.y;
15241  *this = _Value1;
15242  return *this;
15243  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator++ ( )
inline
15184  {
15185  norm_2 _Value = *this;
15186  ++_Value._M_x;
15187  ++_Value._M_y;
15188  *this = _Value;
15189  return *this;
15190  }
_In_ int _Value
Definition: setjmp.h:173
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2 Concurrency::graphics::norm_2::operator++ ( int  )
inline
15193  {
15194  norm_2 _Result = *this;
15195  ++(*this);
15196  return _Result;
15197  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator+= ( const norm_2 _Other)
inline
15216  {
15217  norm_2 _Value1 = *this;
15218  norm_2 _Value2 = _Other;
15219  _Value1.x += _Value2.x;
15220  _Value1.y += _Value2.y;
15221  *this = _Value1;
15222  return *this;
15223  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2 Concurrency::graphics::norm_2::operator- ( void  ) const
inline
15178  {
15179  norm_2 _Value = *this;
15180  return norm_2(-_Value.x, -_Value.y);
15181  }
_In_ int _Value
Definition: setjmp.h:173
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator-- ( )
inline
15200  {
15201  norm_2 _Value = *this;
15202  --_Value._M_x;
15203  --_Value._M_y;
15204  *this = _Value;
15205  return *this;
15206  }
_In_ int _Value
Definition: setjmp.h:173
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2 Concurrency::graphics::norm_2::operator-- ( int  )
inline
15209  {
15210  norm_2 _Result = *this;
15211  --(*this);
15212  return _Result;
15213  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator-= ( const norm_2 _Other)
inline
15226  {
15227  norm_2 _Value1 = *this;
15228  norm_2 _Value2 = _Other;
15229  _Value1.x -= _Value2.x;
15230  _Value1.y -= _Value2.y;
15231  *this = _Value1;
15232  return *this;
15233  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator/= ( const norm_2 _Other)
inline
15246  {
15247  norm_2 _Value1 = *this;
15248  norm_2 _Value2 = _Other;
15249  _Value1.x /= _Value2.x;
15250  _Value1.y /= _Value2.y;
15251  *this = _Value1;
15252  return *this;
15253  }
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
norm_2& Concurrency::graphics::norm_2::operator= ( const norm_2 _Other)
inline
15126  {
15127  _M_x = _Other._M_x;
15128  _M_y = _Other._M_y;
15129  return *this;
15130  }
value_type _M_y
Definition: amp_short_vectors.h:14938
value_type _M_x
Definition: amp_short_vectors.h:14937
norm& Concurrency::graphics::norm_2::ref_g ( )
inline

Returns reference to element 1 of this norm_2.

Returns
Reference to element 1 of this norm_2.
15026  {
15027  return _M_y;
15028  }
value_type _M_y
Definition: amp_short_vectors.h:14938
norm& Concurrency::graphics::norm_2::ref_r ( )
inline

Returns reference to element 0 of this norm_2.

Returns
Reference to element 0 of this norm_2.
14976  {
14977  return _M_x;
14978  }
value_type _M_x
Definition: amp_short_vectors.h:14937
norm& Concurrency::graphics::norm_2::ref_x ( )
inline

Returns reference to element 0 of this norm_2.

Returns
Reference to element 0 of this norm_2.
14966  {
14967  return _M_x;
14968  }
value_type _M_x
Definition: amp_short_vectors.h:14937
norm& Concurrency::graphics::norm_2::ref_y ( )
inline

Returns reference to element 1 of this norm_2.

Returns
Reference to element 1 of this norm_2.
15016  {
15017  return _M_y;
15018  }
value_type _M_y
Definition: amp_short_vectors.h:14938
void Concurrency::graphics::norm_2::set_x ( norm  _Value)
inline

Set element 0 of this norm_2 with a norm.

Parameters
_Valuea norm value.
14987  {
14988  _M_x = _Value;
14989  }
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
void Concurrency::graphics::norm_2::set_xy ( const norm_2 _Value)
inline

Set element 0, and 1 of this norm_2 with a norm_2.

Parameters
_Valuea norm_2 value.
15282  {
15283  norm_2 _Val = _Value;
15284  _M_x = _Val.x;
15285  _M_y = _Val.y;
15286  }
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045
void Concurrency::graphics::norm_2::set_y ( norm  _Value)
inline

Set element 1 of this norm_2 with a norm.

Parameters
_Valuea norm value.
15037  {
15038  _M_y = _Value;
15039  }
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::norm_2::set_yx ( const norm_2 _Value)
inline

Set element 1, and 0 of this norm_2 with a norm_2.

Parameters
_Valuea norm_2 value.
15314  {
15315  norm_2 _Val = _Value;
15316  _M_y = _Val.x;
15317  _M_x = _Val.y;
15318  }
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_y
Definition: amp_short_vectors.h:14938
_In_ int _Value
Definition: setjmp.h:173
value_type _M_x
Definition: amp_short_vectors.h:14937
norm_2() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:15045

Member Data Documentation

const _Short_vector_base_type_id Concurrency::graphics::norm_2::_Base_type_id = _Norm_type
staticprivate
value_type Concurrency::graphics::norm_2::_M_x
private
value_type Concurrency::graphics::norm_2::_M_y
private
const int Concurrency::graphics::norm_2::size = 2
static

The documentation for this class was generated from the following file: