Luna::Vec2U
A generalized version of 2D vector. This vector type does not have specific alignment requirement.
template <typename _Ty>
struct Luna::Vec2U
Parameters
in] _Ty The element type of the vector.
Member objects
-
The fist component of the vector.
-
The second component of the vector.
-
The array of components.
Member functions
-
Constructs one vector with components uninitialized.
-
Constructs one vector by coping components from another vector.
-
Vec2U & operator=(const Vec2U &)=default
Assigns one vector by coping components from another vector.
-
Constructs one vector by coping components from another vector.
-
Vec2U & operator=(Vec2U &&)=default
Assigns one vector by coping components from another vector.
-
Constructs one vector from one Float2 vector.
-
Vec2U & operator=(const Float2 &rhs)
Assigns one vector from one Float2 vector.
-
Converts this vector to Float2.
-
Constructs one vector from one scalar.
-
Constructs one vector from values.
-
bool operator==(const Vec2U &rhs) const
Compares two vectors for equality.
-
bool operator!=(const Vec2U &rhs) const
Compares two vectors for non-equality.