|
PLaSK library
|
Vector component helper. More...
#include <plask/vector/common.hpp>
Public Member Functions | |
| VecComponent< dim, T, i > & | operator= (const T &val) |
| Assign value to the component. | |
| operator T () const | |
| Extract value from the component. | |
Public Attributes | |
| T | c [dim] |
Static Public Attributes | |
| static const int | DIMS = dim |
Vector component helper.
This class allow to perform operations on single components of vectors.
Definition at line 33 of file common.hpp.
|
inline |
Extract value from the component.
Definition at line 48 of file common.hpp.
|
inline |
Assign value to the component.
| val | value to assign |
Definition at line 43 of file common.hpp.
| T plask::VecComponent< dim, T, i >::c[dim] |
Definition at line 37 of file common.hpp.
Definition at line 35 of file common.hpp.