#pragma once #include struct Vector2Options { uint32_t x; uint32_t y; }; /** * A 2D Vector. */ class Vector2 { public: explicit Vector2(const Vector2Options &options); [[nodiscard]] uint32_t get_x() const noexcept; void set_x(uint32_t x) noexcept; [[nodiscard]] uint32_t get_y() const noexcept; void set_y(uint32_t y) noexcept; const Vector2 &operator+=(const Vector2 &vector2) noexcept; const Vector2 &operator-=(const Vector2 &vector2) noexcept; private: uint32_t _x; uint32_t _y; };