diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-07 19:08:08 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | 12fffa7df0685ef6d23ffe888a06695ae490df81 (patch) | |
tree | ffdc24e482b7d4610bdec6f1ebb8ccc0800c5ee5 /src/engine/data/vector2.cpp | |
parent | a9a4381398098107d1b359a19338e91651605de8 (diff) |
refactor: make vector2 data int32_t
Diffstat (limited to 'src/engine/data/vector2.cpp')
-rw-r--r-- | src/engine/data/vector2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/data/vector2.cpp b/src/engine/data/vector2.cpp index 7a22d62..6dcd7d6 100644 --- a/src/engine/data/vector2.cpp +++ b/src/engine/data/vector2.cpp @@ -2,22 +2,22 @@ Vector2::Vector2(const Vector2Options &options) : _x(options.x), _y(options.y) {} -uint32_t Vector2::get_x() const noexcept +int32_t Vector2::get_x() const noexcept { return _x; } -void Vector2::set_x(uint32_t x) noexcept +void Vector2::set_x(int32_t x) noexcept { _x = x; } -uint32_t Vector2::get_y() const noexcept +int32_t Vector2::get_y() const noexcept { return _y; } -void Vector2::set_y(uint32_t y) noexcept +void Vector2::set_y(int32_t y) noexcept { _y = y; } |