Unsigned integer 3 component vector structure. More...
#include <uint.hpp>
Public Member Functions | |
constexpr | uint3 (uint32 xyz=0u) noexcept |
Creates a new unsigned integer 3 component vector structure. | |
constexpr | uint3 (uint32 x, uint32 y, uint32 z) noexcept |
Creates a new unsigned integer 3 component vector structure. | |
constexpr | uint3 (uint2 xy, uint32 z) noexcept |
Creates a new unsigned integer 3 component vector structure. | |
constexpr | uint3 (uint32 x, uint2 yz) noexcept |
Creates a new unsigned integer 3 component vector structure. | |
uint32 & | operator[] (psize i) noexcept |
Returns vector component by index. | |
uint32 | operator[] (psize i) const noexcept |
Returns vector component by index. | |
constexpr | operator uint2 () const noexcept |
Returns as 2 component unsigned integer vector. (xy) | |
constexpr | operator uint32 () const noexcept |
Returns first vector component value. (x) | |
constexpr uint3 | operator+ (uint3 v) const noexcept |
constexpr uint3 | operator- (uint3 v) const noexcept |
constexpr uint3 | operator* (uint3 v) const noexcept |
constexpr uint3 | operator/ (uint3 v) const noexcept |
constexpr uint3 | operator% (uint3 v) const noexcept |
constexpr uint3 | operator& (uint3 v) const noexcept |
constexpr uint3 | operator| (uint3 v) const noexcept |
constexpr uint3 | operator^ (uint3 v) const noexcept |
constexpr uint3 | operator>> (uint3 v) const noexcept |
constexpr uint3 | operator<< (uint3 v) const noexcept |
constexpr uint3 | operator+ (uint32 n) const noexcept |
constexpr uint3 | operator- (uint32 n) const noexcept |
constexpr uint3 | operator* (uint32 n) const noexcept |
constexpr uint3 | operator/ (uint32 n) const noexcept |
constexpr uint3 | operator% (uint32 n) const noexcept |
constexpr uint3 | operator& (uint32 n) const noexcept |
constexpr uint3 | operator| (uint32 n) const noexcept |
constexpr uint3 | operator^ (uint32 n) const noexcept |
constexpr uint3 | operator>> (uint32 n) const noexcept |
constexpr uint3 | operator<< (uint32 n) const noexcept |
constexpr uint3 | operator- () const noexcept |
constexpr uint3 | operator! () const noexcept |
uint3 | operator~ () const noexcept |
uint3 & | operator+= (uint3 v) noexcept |
uint3 & | operator-= (uint3 v) noexcept |
uint3 & | operator*= (uint3 v) noexcept |
uint3 & | operator/= (uint3 v) noexcept |
uint3 & | operator%= (uint3 v) noexcept |
uint3 & | operator&= (uint3 v) noexcept |
uint3 & | operator|= (uint3 v) noexcept |
uint3 & | operator^= (uint3 v) noexcept |
uint3 & | operator>>= (uint3 v) noexcept |
uint3 & | operator<<= (uint3 v) noexcept |
uint3 & | operator+= (uint32 n) noexcept |
uint3 & | operator-= (uint32 n) noexcept |
uint3 & | operator*= (uint32 n) noexcept |
uint3 & | operator/= (uint32 n) noexcept |
uint3 & | operator%= (uint32 n) noexcept |
uint3 & | operator&= (uint32 n) noexcept |
uint3 & | operator|= (uint32 n) noexcept |
uint3 & | operator^= (uint32 n) noexcept |
uint3 & | operator>>= (uint32 n) noexcept |
uint3 & | operator<<= (uint32 n) noexcept |
uint3 & | operator= (uint32 n) noexcept |
constexpr bool | operator== (uint3 v) const noexcept |
constexpr bool | operator!= (uint3 v) const noexcept |
constexpr uint3 | operator< (uint3 v) const noexcept |
constexpr uint3 | operator> (uint3 v) const noexcept |
constexpr uint3 | operator<= (uint3 v) const noexcept |
constexpr uint3 | operator>= (uint3 v) const noexcept |
constexpr bool | operator== (uint32 n) const noexcept |
constexpr bool | operator!= (uint32 n) const noexcept |
constexpr uint3 | operator< (uint32 n) const noexcept |
constexpr uint3 | operator> (uint32 n) const noexcept |
constexpr uint3 | operator<= (uint32 n) const noexcept |
constexpr uint3 | operator>= (uint32 n) const noexcept |
Public Attributes | |
uint32 | x |
uint32 | y |
uint32 | z |
Static Public Attributes | |
static const uint3 | zero = uint3(0u) |
static const uint3 | one = uint3(1u) |
Unsigned integer 3 component vector structure.
Commonly used to represent: points, positions, etc.
Creates a new unsigned integer 3 component vector structure.
xyz | target value for all vector components |
Creates a new unsigned integer 3 component vector structure.
x | first vector component value |
y | second vector component value |
z | third vector component value |
Creates a new unsigned integer 3 component vector structure.
xy | first and second vector components value |
z | third vector component value |
Creates a new unsigned integer 3 component vector structure.
x | first vector component value |
yz | second and third vector components value |
Returns vector component by index.
i | target component index |
Returns vector component by index.
i | target component index |
uint32 x |
First vector component.
uint32 y |
Second vector component.
uint32 z |
Third vector component.