Vector of three elements of type 'unsigned int'. More...
#include <helios_vector_types.h>
Public Member Functions | |
constexpr | uint3 () |
Default constructor. | |
uint3 (const std::vector< unsigned int > &v) | |
Construct uint3 from a vector of unsigned ints. | |
constexpr | uint3 (const unsigned int v[3]) |
Construct uint3 from an array of unsigned ints. | |
constexpr | uint3 (unsigned int v0, unsigned int v1, unsigned int v2) |
Construct uint3 from three unsigned ints. | |
constexpr uint3 | operator+ (const uint3 &a) const noexcept |
Add two uint3 vectors. | |
uint3 & | operator+= (const uint3 &a) noexcept |
Increment uint3 vector. | |
uint3 & | operator-= (const uint3 &a) noexcept |
Decrement uint3 vector. | |
constexpr uint3 | operator- (const uint3 &a) const noexcept |
Subtract two uint3 vectors. | |
constexpr bool | operator== (const uint3 &a) const noexcept |
Equality for all elements. | |
constexpr bool | operator!= (const uint3 &a) const noexcept |
Inequality for all elements. | |
constexpr uint3 | operator- () const noexcept |
Multiply each element by zero minus itself (wraps) | |
Data Fields | |
unsigned int | x |
First element in vector. | |
unsigned int | y |
Second element in vector. | |
unsigned int | z |
Third element in vector. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const helios::uint3 &vec) |
Write uint3 to output stream. | |
Vector of three elements of type 'unsigned int'.
Definition at line 459 of file helios_vector_types.h.
|
inlineconstexpr |
|
inlineexplicit |
Construct uint3 from a vector of unsigned ints.
Definition at line 477 of file helios_vector_types.h.
|
inlineexplicitconstexpr |
Construct uint3 from an array of unsigned ints.
Definition at line 486 of file helios_vector_types.h.
|
inlineconstexpr |
Construct uint3 from three unsigned ints.
Definition at line 490 of file helios_vector_types.h.
|
constexprnoexcept |
Inequality for all elements.
Definition at line 560 of file helios_vector_types.h.
Add two uint3 vectors.
Definition at line 534 of file helios_vector_types.h.
Increment uint3 vector.
Definition at line 538 of file helios_vector_types.h.
|
constexprnoexcept |
Multiply each element by zero minus itself (wraps)
Definition at line 564 of file helios_vector_types.h.
Subtract two uint3 vectors.
Definition at line 552 of file helios_vector_types.h.
Decrement uint3 vector.
Definition at line 545 of file helios_vector_types.h.
|
constexprnoexcept |
Equality for all elements.
Definition at line 556 of file helios_vector_types.h.
|
friend |
Write uint3 to output stream.
Definition at line 509 of file helios_vector_types.h.
unsigned int helios::uint3::x |
First element in vector.
Definition at line 463 of file helios_vector_types.h.
unsigned int helios::uint3::y |
Second element in vector.
Definition at line 465 of file helios_vector_types.h.
unsigned int helios::uint3::z |
Third element in vector.
Definition at line 467 of file helios_vector_types.h.