cyclic iterator over xyzw indices
More...
#include <xyzw.h>
|
|
constexpr | XYZW () |
| | intializes iterator to x axis.
|
| |
|
constexpr | XYZW (char axis) |
| | initializes iterator to an axis by character: 'x', 'y', 'z' or 'w'.
|
| |
| constexpr | XYZW (int value) |
| | initializes iterator to an axis by number.
|
| |
|
| XYZW (const std::string &axis) |
| | initializes iterator to an axis by character: "x", "y", "z" or "w".
|
| |
|
constexpr char | axis () const |
| | return axis by character: 'x', 'y', 'z' or 'w'.
|
| |
| constexpr | operator int () const |
| | convert axis to integer.
|
| |
| constexpr | operator size_t () const |
| | convert axis to integer.
|
| |
cyclic iterator over xyzw indices
- Author
- Bram de Greve [BdG]
Definition at line 61 of file xyzw.h.
◆ XYZW()
| lass::prim::XYZW::XYZW |
( |
int | value | ) |
|
|
inlineexplicitconstexpr |
initializes iterator to an axis by number.
..., -1 == w, 0 == x, 1 == y, 2 == z, 3 == w, 4 == x...
Definition at line 109 of file xyzw.h.
◆ operator int()
| lass::prim::XYZW::operator int |
( |
| ) |
const |
|
inlineconstexpr |
convert axis to integer.
0 == x, 1 == y, 2 == z, 3 == w
Definition at line 134 of file xyzw.h.
◆ operator size_t()
| lass::prim::XYZW::operator size_t |
( |
| ) |
const |
|
inlineconstexpr |
convert axis to integer.
0 == x, 1 == y, 2 == z, 3 == w
Definition at line 135 of file xyzw.h.
The documentation for this class was generated from the following file: