Unsigned integer 4 component vector structure. More...
#include <uint.hpp>
Public Member Functions | |
constexpr | uint4 (uint32 xyzw=0u) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint32 x, uint32 y, uint32 z, uint32 w) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint2 xy, uint32 z, uint32 w) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint32 x, uint2 yz, uint32 w) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint32 x, uint32 y, uint2 zw) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint2 xy, uint2 zw) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint3 xyz, uint32 w) noexcept |
Creates a new unsigned integer 4 component vector structure. | |
constexpr | uint4 (uint32 x, uint3 yzw) noexcept |
Creates a new unsigned integer 4 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 uint3 () const noexcept |
Returns as 3 component unsigned integer vector. (xyz) | |
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 uint4 | operator+ (uint4 v) const noexcept |
constexpr uint4 | operator- (uint4 v) const noexcept |
constexpr uint4 | operator* (uint4 v) const noexcept |
constexpr uint4 | operator/ (uint4 v) const noexcept |
constexpr uint4 | operator% (uint4 v) const noexcept |
constexpr uint4 | operator& (uint4 v) const noexcept |
constexpr uint4 | operator| (uint4 v) const noexcept |
constexpr uint4 | operator^ (uint4 v) const noexcept |
constexpr uint4 | operator>> (uint4 v) const noexcept |
constexpr uint4 | operator<< (uint4 v) const noexcept |
constexpr uint4 | operator+ (uint32 n) const noexcept |
constexpr uint4 | operator- (uint32 n) const noexcept |
constexpr uint4 | operator* (uint32 n) const noexcept |
constexpr uint4 | operator/ (uint32 n) const noexcept |
constexpr uint4 | operator% (uint32 n) const noexcept |
constexpr uint4 | operator& (uint32 n) const noexcept |
constexpr uint4 | operator| (uint32 n) const noexcept |
constexpr uint4 | operator^ (uint32 n) const noexcept |
constexpr uint4 | operator>> (uint32 n) const noexcept |
constexpr uint4 | operator<< (uint32 n) const noexcept |
constexpr uint4 | operator- () const noexcept |
constexpr uint4 | operator! () const noexcept |
constexpr uint4 | operator~ () const noexcept |
uint4 & | operator+= (uint4 v) noexcept |
uint4 & | operator-= (uint4 v) noexcept |
uint4 & | operator*= (uint4 v) noexcept |
uint4 & | operator/= (uint4 v) noexcept |
uint4 & | operator%= (uint4 v) noexcept |
uint4 & | operator&= (uint4 v) noexcept |
uint4 & | operator|= (uint4 v) noexcept |
uint4 & | operator^= (uint4 v) noexcept |
uint4 & | operator>>= (uint4 v) noexcept |
uint4 & | operator<<= (uint4 v) noexcept |
uint4 & | operator+= (uint32 n) noexcept |
uint4 & | operator-= (uint32 n) noexcept |
uint4 & | operator*= (uint32 n) noexcept |
uint4 & | operator/= (uint32 n) noexcept |
uint4 & | operator%= (uint32 n) noexcept |
uint4 & | operator&= (uint32 n) noexcept |
uint4 & | operator|= (uint32 n) noexcept |
uint4 & | operator^= (uint32 n) noexcept |
uint4 & | operator>>= (uint32 n) noexcept |
uint4 & | operator<<= (uint32 n) noexcept |
uint4 & | operator= (uint32 n) noexcept |
constexpr bool | operator== (uint4 v) const noexcept |
constexpr bool | operator!= (uint4 v) const noexcept |
constexpr uint4 | operator< (uint4 v) const noexcept |
constexpr uint4 | operator> (uint4 v) const noexcept |
constexpr uint4 | operator<= (uint4 v) const noexcept |
constexpr uint4 | operator>= (uint4 v) const noexcept |
constexpr bool | operator== (uint32 n) const noexcept |
constexpr bool | operator!= (uint32 n) const noexcept |
constexpr uint4 | operator< (uint32 n) const noexcept |
constexpr uint4 | operator> (uint32 n) const noexcept |
constexpr uint4 | operator<= (uint32 n) const noexcept |
constexpr uint4 | operator>= (uint32 n) const noexcept |
Public Attributes | |
uint32 | x |
uint32 | y |
uint32 | z |
uint32 | w |
Static Public Attributes | |
static const uint4 | zero = uint4(0u) |
static const uint4 | one = uint4(1u) |
Unsigned integer 4 component vector structure.
Commonly used to represent: points, positions, etc.
Creates a new unsigned integer 4 component vector structure.
xyzw | target value for all vector components |
Creates a new unsigned integer 4 component vector structure.
x | first vector component value |
y | second vector component value |
z | third vector component value |
w | fourth vector component value |
Creates a new unsigned integer 4 component vector structure.
xy | first and second vector components value |
z | third vector component value |
w | fourth vector component value |
Creates a new unsigned integer 4 component vector structure.
x | first vector component value |
yz | second and third vector components value |
w | fourth vector component value |
Creates a new unsigned integer 4 component vector structure.
x | first vector component value |
y | second vector component value |
zw | third and fourth vector components value |
Creates a new unsigned integer 4 component vector structure.
xy | first and second vector components value |
zw | third and fourth vector components value |
Creates a new unsigned integer 4 component vector structure.
xyz | first, second and third vector components value |
w | fourth vector component value |
Creates a new unsigned integer 4 component vector structure.
x | first vector component value |
yzw | second, third and fourth 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.
uint32 w |
Fourth vector component.