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::float_3 Class Reference

Represent a short vector of 3 float's. More...

#include <amp_short_vectors.h>

Public Types

typedef float value_type
 

Public Member Functions

 __declspec (property(get=get_x, put=set_x)) float x
 Property for accessing element 0 of this float_3 as a float. More...
 
 __declspec (property(get=get_x, put=set_x)) float r
 Property for accessing element 0 of this float_3 as a float. More...
 
float get_x () const __GPU
 Returns element 0 of this float_3. More...
 
float & ref_x () __GPU
 Returns reference to element 0 of this float_3. More...
 
float & ref_r () __GPU
 Returns reference to element 0 of this float_3. More...
 
void set_x (float _Value) __GPU
 Set element 0 of this float_3 with a float. More...
 
 __declspec (property(get=get_y, put=set_y)) float y
 Property for accessing element 1 of this float_3 as a float. More...
 
 __declspec (property(get=get_y, put=set_y)) float g
 Property for accessing element 1 of this float_3 as a float. More...
 
float get_y () const __GPU
 Returns element 1 of this float_3. More...
 
float & ref_y () __GPU
 Returns reference to element 1 of this float_3. More...
 
float & ref_g () __GPU
 Returns reference to element 1 of this float_3. More...
 
void set_y (float _Value) __GPU
 Set element 1 of this float_3 with a float. More...
 
 __declspec (property(get=get_z, put=set_z)) float z
 Property for accessing element 2 of this float_3 as a float. More...
 
 __declspec (property(get=get_z, put=set_z)) float b
 Property for accessing element 2 of this float_3 as a float. More...
 
float get_z () const __GPU
 Returns element 2 of this float_3. More...
 
float & ref_z () __GPU
 Returns reference to element 2 of this float_3. More...
 
float & ref_b () __GPU
 Returns reference to element 2 of this float_3. More...
 
void set_z (float _Value) __GPU
 Set element 2 of this float_3 with a float. More...
 
 float_3 () __GPU
 Default constructor, initializes all elements with 0. More...
 
 float_3 (float _V0, float _V1, float _V2) __GPU
 Constructor. More...
 
 float_3 (float _V) __GPU
 Constructor. More...
 
 float_3 (const uint_3 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 float_3 (const int_3 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 float_3 (const unorm_3 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 float_3 (const norm_3 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
 float_3 (const double_3 &_Other) __GPU
 Constructor. Each element is initialized by casting from the corresponding element in _Other. More...
 
float_3 operator- () const __GPU
 
float_3operator++ () __GPU
 
float_3 operator++ (int) __GPU
 
float_3operator-- () __GPU
 
float_3 operator-- (int) __GPU
 
float_3operator+= (const float_3 &_Other) __GPU
 
float_3operator-= (const float_3 &_Other) __GPU
 
float_3operator*= (const float_3 &_Other) __GPU
 
float_3operator/= (const float_3 &_Other) __GPU
 
 __declspec (property(get=get_xy, put=set_xy)) float_2 xy
 Property for accessing element 0, and 1 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_xy, put=set_xy)) float_2 rg
 Property for accessing element 0, and 1 of this float_3 as a float_2. More...
 
float_2 get_xy () const __GPU
 Returns a float_2 that is composed of element 0, and element 1 of this float_3. More...
 
void set_xy (const float_2 &_Value) __GPU
 Set element 0, and 1 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_xz, put=set_xz)) float_2 xz
 Property for accessing element 0, and 2 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_xz, put=set_xz)) float_2 rb
 Property for accessing element 0, and 2 of this float_3 as a float_2. More...
 
float_2 get_xz () const __GPU
 Returns a float_2 that is composed of element 0, and element 2 of this float_3. More...
 
void set_xz (const float_2 &_Value) __GPU
 Set element 0, and 2 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) float_2 yx
 Property for accessing element 1, and 0 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_yx, put=set_yx)) float_2 gr
 Property for accessing element 1, and 0 of this float_3 as a float_2. More...
 
float_2 get_yx () const __GPU
 Returns a float_2 that is composed of element 1, and element 0 of this float_3. More...
 
void set_yx (const float_2 &_Value) __GPU
 Set element 1, and 0 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_yz, put=set_yz)) float_2 yz
 Property for accessing element 1, and 2 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_yz, put=set_yz)) float_2 gb
 Property for accessing element 1, and 2 of this float_3 as a float_2. More...
 
float_2 get_yz () const __GPU
 Returns a float_2 that is composed of element 1, and element 2 of this float_3. More...
 
void set_yz (const float_2 &_Value) __GPU
 Set element 1, and 2 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_zx, put=set_zx)) float_2 zx
 Property for accessing element 2, and 0 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_zx, put=set_zx)) float_2 br
 Property for accessing element 2, and 0 of this float_3 as a float_2. More...
 
float_2 get_zx () const __GPU
 Returns a float_2 that is composed of element 2, and element 0 of this float_3. More...
 
void set_zx (const float_2 &_Value) __GPU
 Set element 2, and 0 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_zy, put=set_zy)) float_2 zy
 Property for accessing element 2, and 1 of this float_3 as a float_2. More...
 
 __declspec (property(get=get_zy, put=set_zy)) float_2 bg
 Property for accessing element 2, and 1 of this float_3 as a float_2. More...
 
float_2 get_zy () const __GPU
 Returns a float_2 that is composed of element 2, and element 1 of this float_3. More...
 
void set_zy (const float_2 &_Value) __GPU
 Set element 2, and 1 of this float_3 with a float_2. More...
 
 __declspec (property(get=get_xyz, put=set_xyz)) float_3 xyz
 Property for accessing element 0, 1, and 2 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_xyz, put=set_xyz)) float_3 rgb
 Property for accessing element 0, 1, and 2 of this float_3 as a float_3. More...
 
float_3 get_xyz () const __GPU
 Returns a float_3 that is composed of element 0, element 1, and element 2 of this float_3. More...
 
void set_xyz (const float_3 &_Value) __GPU
 Set element 0, 1, and 2 of this float_3 with a float_3. More...
 
 __declspec (property(get=get_xzy, put=set_xzy)) float_3 xzy
 Property for accessing element 0, 2, and 1 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_xzy, put=set_xzy)) float_3 rbg
 Property for accessing element 0, 2, and 1 of this float_3 as a float_3. More...
 
float_3 get_xzy () const __GPU
 Returns a float_3 that is composed of element 0, element 2, and element 1 of this float_3. More...
 
void set_xzy (const float_3 &_Value) __GPU
 Set element 0, 2, and 1 of this float_3 with a float_3. More...
 
 __declspec (property(get=get_yxz, put=set_yxz)) float_3 yxz
 Property for accessing element 1, 0, and 2 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_yxz, put=set_yxz)) float_3 grb
 Property for accessing element 1, 0, and 2 of this float_3 as a float_3. More...
 
float_3 get_yxz () const __GPU
 Returns a float_3 that is composed of element 1, element 0, and element 2 of this float_3. More...
 
void set_yxz (const float_3 &_Value) __GPU
 Set element 1, 0, and 2 of this float_3 with a float_3. More...
 
 __declspec (property(get=get_yzx, put=set_yzx)) float_3 yzx
 Property for accessing element 1, 2, and 0 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_yzx, put=set_yzx)) float_3 gbr
 Property for accessing element 1, 2, and 0 of this float_3 as a float_3. More...
 
float_3 get_yzx () const __GPU
 Returns a float_3 that is composed of element 1, element 2, and element 0 of this float_3. More...
 
void set_yzx (const float_3 &_Value) __GPU
 Set element 1, 2, and 0 of this float_3 with a float_3. More...
 
 __declspec (property(get=get_zxy, put=set_zxy)) float_3 zxy
 Property for accessing element 2, 0, and 1 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_zxy, put=set_zxy)) float_3 brg
 Property for accessing element 2, 0, and 1 of this float_3 as a float_3. More...
 
float_3 get_zxy () const __GPU
 Returns a float_3 that is composed of element 2, element 0, and element 1 of this float_3. More...
 
void set_zxy (const float_3 &_Value) __GPU
 Set element 2, 0, and 1 of this float_3 with a float_3. More...
 
 __declspec (property(get=get_zyx, put=set_zyx)) float_3 zyx
 Property for accessing element 2, 1, and 0 of this float_3 as a float_3. More...
 
 __declspec (property(get=get_zyx, put=set_zyx)) float_3 bgr
 Property for accessing element 2, 1, and 0 of this float_3 as a float_3. More...
 
float_3 get_zyx () const __GPU
 Returns a float_3 that is composed of element 2, element 1, and element 0 of this float_3. More...
 
void set_zyx (const float_3 &_Value) __GPU
 Set element 2, 1, and 0 of this float_3 with a float_3. More...
 

Static Public Attributes

static const int size = 3
 

Private Attributes

value_type _M_x
 
value_type _M_y
 
value_type _M_z
 

Static Private Attributes

static const _Short_vector_base_type_id _Base_type_id = _Float_type
 

Detailed Description

Represent a short vector of 3 float's.

Member Typedef Documentation

Constructor & Destructor Documentation

Concurrency::graphics::float_3::float_3 ( )
inline

Default constructor, initializes all elements with 0.

8384  {
8385  _M_x = 0;
8386  _M_y = 0;
8387  _M_z = 0;
8388  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
Concurrency::graphics::float_3::float_3 ( float  _V0,
float  _V1,
float  _V2 
)
inline

Constructor.

Parameters
_V0The value to initialize element 0.
_V1The value to initialize element 1.
_V2The value to initialize element 2.
8403  {
8404  _M_x = _V0;
8405  _M_y = _V1;
8406  _M_z = _V2;
8407  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
Concurrency::graphics::float_3::float_3 ( float  _V)
inline

Constructor.

Parameters
_VThe value for initialization.
8416  {
8417  _M_x = _V;
8418  _M_y = _V;
8419  _M_z = _V;
8420  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
Concurrency::graphics::float_3::float_3 ( const uint_3 _Other)
inlineexplicit

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

Parameters
_OtherThe object used to initialize.
22340  {
22341  uint_3 _Value = _Other;
22342  _M_x = static_cast<value_type>(_Value.x);
22343  _M_y = static_cast<value_type>(_Value.y);
22344  _M_z = static_cast<value_type>(_Value.z);
22345  }
float value_type
Definition: amp_short_vectors.h:8219
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::float_3::float_3 ( const int_3 _Other)
inlineexplicit

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

Parameters
_OtherThe object used to initialize.
22348  {
22349  int_3 _Value = _Other;
22350  _M_x = static_cast<value_type>(_Value.x);
22351  _M_y = static_cast<value_type>(_Value.y);
22352  _M_z = static_cast<value_type>(_Value.z);
22353  }
float value_type
Definition: amp_short_vectors.h:8219
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::float_3::float_3 ( const unorm_3 _Other)
inlineexplicit

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

Parameters
_OtherThe object used to initialize.
22356  {
22357  unorm_3 _Value = _Other;
22358  _M_x = static_cast<value_type>(_Value.x);
22359  _M_y = static_cast<value_type>(_Value.y);
22360  _M_z = static_cast<value_type>(_Value.z);
22361  }
float value_type
Definition: amp_short_vectors.h:8219
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::float_3::float_3 ( const norm_3 _Other)
inlineexplicit

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

Parameters
_OtherThe object used to initialize.
22364  {
22365  norm_3 _Value = _Other;
22366  _M_x = static_cast<value_type>(_Value.x);
22367  _M_y = static_cast<value_type>(_Value.y);
22368  _M_z = static_cast<value_type>(_Value.z);
22369  }
float value_type
Definition: amp_short_vectors.h:8219
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
Concurrency::graphics::float_3::float_3 ( const double_3 _Other)
inlineexplicit

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

Parameters
_OtherThe object used to initialize.
22372  {
22373  double_3 _Value = _Other;
22374  _M_x = static_cast<value_type>(_Value.x);
22375  _M_y = static_cast<value_type>(_Value.y);
22376  _M_z = static_cast<value_type>(_Value.z);
22377  }
float value_type
Definition: amp_short_vectors.h:8219
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173

Member Function Documentation

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

Property for accessing element 0 of this float_3 as a float.

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

Property for accessing element 0 of this float_3 as a float.

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

Property for accessing element 1 of this float_3 as a float.

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

Property for accessing element 1 of this float_3 as a float.

Concurrency::graphics::float_3::__declspec ( property(get=get_z, put=set_z )

Property for accessing element 2 of this float_3 as a float.

Concurrency::graphics::float_3::__declspec ( property(get=get_z, put=set_z )

Property for accessing element 2 of this float_3 as a float.

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

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

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

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

Concurrency::graphics::float_3::__declspec ( property(get=get_xz, put=set_xz )

Property for accessing element 0, and 2 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_xz, put=set_xz )

Property for accessing element 0, and 2 of this float_3 as a float_2.

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

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

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

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

Concurrency::graphics::float_3::__declspec ( property(get=get_yz, put=set_yz )

Property for accessing element 1, and 2 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_yz, put=set_yz )

Property for accessing element 1, and 2 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_zx, put=set_zx )

Property for accessing element 2, and 0 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_zx, put=set_zx )

Property for accessing element 2, and 0 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_zy, put=set_zy )

Property for accessing element 2, and 1 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_zy, put=set_zy )

Property for accessing element 2, and 1 of this float_3 as a float_2.

Concurrency::graphics::float_3::__declspec ( property(get=get_xyz, put=set_xyz )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_xyz, put=set_xyz )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_xzy, put=set_xzy )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_xzy, put=set_xzy )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_yxz, put=set_yxz )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_yxz, put=set_yxz )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_yzx, put=set_yzx )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_yzx, put=set_yzx )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_zxy, put=set_zxy )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_zxy, put=set_zxy )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_zyx, put=set_zyx )

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

Concurrency::graphics::float_3::__declspec ( property(get=get_zyx, put=set_zyx )

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

float Concurrency::graphics::float_3::get_x ( ) const
inline

Returns element 0 of this float_3.

Returns
Element 0 of this float_3.
8244  {
8245  return _M_x;
8246  }
value_type _M_x
Definition: amp_short_vectors.h:8224
float_2 Concurrency::graphics::float_3::get_xy ( ) const
inline

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

Returns
a float_2.
8567  {
8568  return float_2(_M_x,_M_y);
8569  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
float_3 Concurrency::graphics::float_3::get_xyz ( ) const
inline

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

Returns
a float_3.
8759  {
8760  return float_3(_M_x,_M_y,_M_z);
8761  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_2 Concurrency::graphics::float_3::get_xz ( ) const
inline

Returns a float_2 that is composed of element 0, and element 2 of this float_3.

Returns
a float_2.
8599  {
8600  return float_2(_M_x,_M_z);
8601  }
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_3 Concurrency::graphics::float_3::get_xzy ( ) const
inline

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

Returns
a float_3.
8792  {
8793  return float_3(_M_x,_M_z,_M_y);
8794  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float Concurrency::graphics::float_3::get_y ( ) const
inline

Returns element 1 of this float_3.

Returns
Element 1 of this float_3.
8294  {
8295  return _M_y;
8296  }
value_type _M_y
Definition: amp_short_vectors.h:8225
float_2 Concurrency::graphics::float_3::get_yx ( ) const
inline

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

Returns
a float_2.
8631  {
8632  return float_2(_M_y,_M_x);
8633  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
float_3 Concurrency::graphics::float_3::get_yxz ( ) const
inline

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

Returns
a float_3.
8825  {
8826  return float_3(_M_y,_M_x,_M_z);
8827  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_2 Concurrency::graphics::float_3::get_yz ( ) const
inline

Returns a float_2 that is composed of element 1, and element 2 of this float_3.

Returns
a float_2.
8663  {
8664  return float_2(_M_y,_M_z);
8665  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_z
Definition: amp_short_vectors.h:8226
float_3 Concurrency::graphics::float_3::get_yzx ( ) const
inline

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

Returns
a float_3.
8858  {
8859  return float_3(_M_y,_M_z,_M_x);
8860  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float Concurrency::graphics::float_3::get_z ( ) const
inline

Returns element 2 of this float_3.

Returns
Element 2 of this float_3.
8344  {
8345  return _M_z;
8346  }
value_type _M_z
Definition: amp_short_vectors.h:8226
float_2 Concurrency::graphics::float_3::get_zx ( ) const
inline

Returns a float_2 that is composed of element 2, and element 0 of this float_3.

Returns
a float_2.
8695  {
8696  return float_2(_M_z,_M_x);
8697  }
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_3 Concurrency::graphics::float_3::get_zxy ( ) const
inline

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

Returns
a float_3.
8891  {
8892  return float_3(_M_z,_M_x,_M_y);
8893  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_2 Concurrency::graphics::float_3::get_zy ( ) const
inline

Returns a float_2 that is composed of element 2, and element 1 of this float_3.

Returns
a float_2.
8727  {
8728  return float_2(_M_z,_M_y);
8729  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_z
Definition: amp_short_vectors.h:8226
float_3 Concurrency::graphics::float_3::get_zyx ( ) const
inline

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

Returns
a float_3.
8924  {
8925  return float_3(_M_z,_M_y,_M_x);
8926  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
value_type _M_z
Definition: amp_short_vectors.h:8226
float_3& Concurrency::graphics::float_3::operator*= ( const float_3 _Other)
inline
8530  {
8531  float_3 _Value1 = *this;
8532  float_3 _Value2 = _Other;
8533  _Value1.x *= _Value2.x;
8534  _Value1.y *= _Value2.y;
8535  _Value1.z *= _Value2.z;
8536  *this = _Value1;
8537  return *this;
8538  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float_3& Concurrency::graphics::float_3::operator++ ( )
inline
8474  {
8475  float_3 _Value = *this;
8476  ++_Value._M_x;
8477  ++_Value._M_y;
8478  ++_Value._M_z;
8479  *this = _Value;
8480  return *this;
8481  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
_In_ int _Value
Definition: setjmp.h:173
float_3 Concurrency::graphics::float_3::operator++ ( int  )
inline
8484  {
8485  float_3 _Result = *this;
8486  ++(*this);
8487  return _Result;
8488  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float_3& Concurrency::graphics::float_3::operator+= ( const float_3 _Other)
inline
8508  {
8509  float_3 _Value1 = *this;
8510  float_3 _Value2 = _Other;
8511  _Value1.x += _Value2.x;
8512  _Value1.y += _Value2.y;
8513  _Value1.z += _Value2.z;
8514  *this = _Value1;
8515  return *this;
8516  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float_3 Concurrency::graphics::float_3::operator- ( void  ) const
inline
8468  {
8469  float_3 _Value = *this;
8470  return float_3(-_Value.x, -_Value.y, -_Value.z);
8471  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
_In_ int _Value
Definition: setjmp.h:173
float_3& Concurrency::graphics::float_3::operator-- ( )
inline
8491  {
8492  float_3 _Value = *this;
8493  --_Value._M_x;
8494  --_Value._M_y;
8495  --_Value._M_z;
8496  *this = _Value;
8497  return *this;
8498  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
_In_ int _Value
Definition: setjmp.h:173
float_3 Concurrency::graphics::float_3::operator-- ( int  )
inline
8501  {
8502  float_3 _Result = *this;
8503  --(*this);
8504  return _Result;
8505  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float_3& Concurrency::graphics::float_3::operator-= ( const float_3 _Other)
inline
8519  {
8520  float_3 _Value1 = *this;
8521  float_3 _Value2 = _Other;
8522  _Value1.x -= _Value2.x;
8523  _Value1.y -= _Value2.y;
8524  _Value1.z -= _Value2.z;
8525  *this = _Value1;
8526  return *this;
8527  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float_3& Concurrency::graphics::float_3::operator/= ( const float_3 _Other)
inline
8541  {
8542  float_3 _Value1 = *this;
8543  float_3 _Value2 = _Other;
8544  _Value1.x /= _Value2.x;
8545  _Value1.y /= _Value2.y;
8546  _Value1.z /= _Value2.z;
8547  *this = _Value1;
8548  return *this;
8549  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
float& Concurrency::graphics::float_3::ref_b ( )
inline

Returns reference to element 2 of this float_3.

Returns
Reference to element 2 of this float_3.
8364  {
8365  return _M_z;
8366  }
value_type _M_z
Definition: amp_short_vectors.h:8226
float& Concurrency::graphics::float_3::ref_g ( )
inline

Returns reference to element 1 of this float_3.

Returns
Reference to element 1 of this float_3.
8314  {
8315  return _M_y;
8316  }
value_type _M_y
Definition: amp_short_vectors.h:8225
float& Concurrency::graphics::float_3::ref_r ( )
inline

Returns reference to element 0 of this float_3.

Returns
Reference to element 0 of this float_3.
8264  {
8265  return _M_x;
8266  }
value_type _M_x
Definition: amp_short_vectors.h:8224
float& Concurrency::graphics::float_3::ref_x ( )
inline

Returns reference to element 0 of this float_3.

Returns
Reference to element 0 of this float_3.
8254  {
8255  return _M_x;
8256  }
value_type _M_x
Definition: amp_short_vectors.h:8224
float& Concurrency::graphics::float_3::ref_y ( )
inline

Returns reference to element 1 of this float_3.

Returns
Reference to element 1 of this float_3.
8304  {
8305  return _M_y;
8306  }
value_type _M_y
Definition: amp_short_vectors.h:8225
float& Concurrency::graphics::float_3::ref_z ( )
inline

Returns reference to element 2 of this float_3.

Returns
Reference to element 2 of this float_3.
8354  {
8355  return _M_z;
8356  }
value_type _M_z
Definition: amp_short_vectors.h:8226
void Concurrency::graphics::float_3::set_x ( float  _Value)
inline

Set element 0 of this float_3 with a float.

Parameters
_Valuea float value.
8275  {
8276  _M_x = _Value;
8277  }
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_xy ( const float_2 _Value)
inline

Set element 0, and 1 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8578  {
8579  float_2 _Val = _Value;
8580  _M_x = _Val.x;
8581  _M_y = _Val.y;
8582  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_xyz ( const float_3 _Value)
inline

Set element 0, 1, and 2 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8770  {
8771  float_3 _Val = _Value;
8772  _M_x = _Val.x;
8773  _M_y = _Val.y;
8774  _M_z = _Val.z;
8775  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_xz ( const float_2 _Value)
inline

Set element 0, and 2 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8610  {
8611  float_2 _Val = _Value;
8612  _M_x = _Val.x;
8613  _M_z = _Val.y;
8614  }
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_xzy ( const float_3 _Value)
inline

Set element 0, 2, and 1 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8803  {
8804  float_3 _Val = _Value;
8805  _M_x = _Val.x;
8806  _M_z = _Val.y;
8807  _M_y = _Val.z;
8808  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_y ( float  _Value)
inline

Set element 1 of this float_3 with a float.

Parameters
_Valuea float value.
8325  {
8326  _M_y = _Value;
8327  }
value_type _M_y
Definition: amp_short_vectors.h:8225
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_yx ( const float_2 _Value)
inline

Set element 1, and 0 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8642  {
8643  float_2 _Val = _Value;
8644  _M_y = _Val.x;
8645  _M_x = _Val.y;
8646  }
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_yxz ( const float_3 _Value)
inline

Set element 1, 0, and 2 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8836  {
8837  float_3 _Val = _Value;
8838  _M_y = _Val.x;
8839  _M_x = _Val.y;
8840  _M_z = _Val.z;
8841  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_yz ( const float_2 _Value)
inline

Set element 1, and 2 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8674  {
8675  float_2 _Val = _Value;
8676  _M_y = _Val.x;
8677  _M_z = _Val.y;
8678  }
value_type _M_y
Definition: amp_short_vectors.h:8225
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_yzx ( const float_3 _Value)
inline

Set element 1, 2, and 0 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8869  {
8870  float_3 _Val = _Value;
8871  _M_y = _Val.x;
8872  _M_z = _Val.y;
8873  _M_x = _Val.z;
8874  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_z ( float  _Value)
inline

Set element 2 of this float_3 with a float.

Parameters
_Valuea float value.
8375  {
8376  _M_z = _Value;
8377  }
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_zx ( const float_2 _Value)
inline

Set element 2, and 0 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8706  {
8707  float_2 _Val = _Value;
8708  _M_z = _Val.x;
8709  _M_x = _Val.y;
8710  }
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_zxy ( const float_3 _Value)
inline

Set element 2, 0, and 1 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8902  {
8903  float_3 _Val = _Value;
8904  _M_z = _Val.x;
8905  _M_x = _Val.y;
8906  _M_y = _Val.z;
8907  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_zy ( const float_2 _Value)
inline

Set element 2, and 1 of this float_3 with a float_2.

Parameters
_Valuea float_2 value.
8738  {
8739  float_2 _Val = _Value;
8740  _M_z = _Val.x;
8741  _M_y = _Val.y;
8742  }
value_type _M_y
Definition: amp_short_vectors.h:8225
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173
void Concurrency::graphics::float_3::set_zyx ( const float_3 _Value)
inline

Set element 2, 1, and 0 of this float_3 with a float_3.

Parameters
_Valuea float_3 value.
8935  {
8936  float_3 _Val = _Value;
8937  _M_z = _Val.x;
8938  _M_y = _Val.y;
8939  _M_x = _Val.z;
8940  }
float_3() __GPU
Default constructor, initializes all elements with 0.
Definition: amp_short_vectors.h:8383
value_type _M_y
Definition: amp_short_vectors.h:8225
value_type _M_x
Definition: amp_short_vectors.h:8224
_In_ int _Val
Definition: vcruntime_string.h:62
value_type _M_z
Definition: amp_short_vectors.h:8226
_In_ int _Value
Definition: setjmp.h:173

Member Data Documentation

const _Short_vector_base_type_id Concurrency::graphics::float_3::_Base_type_id = _Float_type
staticprivate
value_type Concurrency::graphics::float_3::_M_x
private
value_type Concurrency::graphics::float_3::_M_y
private
value_type Concurrency::graphics::float_3::_M_z
private
const int Concurrency::graphics::float_3::size = 3
static

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