![]() |
KTech 1.1.0
C++ 2D terminal game engine library
|
Unsigned 2D vector, mostly used to store sizes and 2D indexes. More...
#include <upoint.hpp>
Public Member Functions | |
constexpr | UPoint (uint32_t x=0, uint32_t y=0) |
Construct a UPoint . | |
constexpr auto | operator== (const UPoint &uPoint) const -> bool |
Compare 2 UPoint s. | |
constexpr auto | operator+ (const UPoint &uPoint) const -> UPoint |
Add 2 UPoint s together. | |
constexpr auto | operator- (const UPoint &uPoint) const -> UPoint |
Subtract UPoint from another. | |
constexpr auto | operator+= (const UPoint &uPoint) -> UPoint & |
Add a UPoint to this UPoint . | |
constexpr auto | operator-= (const UPoint &uPoint) -> UPoint & |
Subtract a UPoint from this UPoint . | |
Public Attributes | |
uint32_t | x |
X axis. | |
uint32_t | y |
Y axis. | |
Unsigned 2D vector, mostly used to store sizes and 2D indexes.
|
inlineconstexpr |
Construct a UPoint
.
[in] | x | X axis. |
[in] | y | Y axis. |
|
inlineconstexpr |