diff options
author | Aki <please@ignore.pl> | 2023-04-21 22:52:28 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-04-05 19:41:19 +0200 |
commit | 654c94e1d312970413e376214b11bd554040d30f (patch) | |
tree | 217084920141425c3f7f5bbc4657a97523dde5c0 /engine/src/Point.cpp | |
parent | 727ae858a73f4c36bf253a873530dc4dd78c498f (diff) | |
download | kurator-654c94e1d312970413e376214b11bd554040d30f.zip kurator-654c94e1d312970413e376214b11bd554040d30f.tar.gz kurator-654c94e1d312970413e376214b11bd554040d30f.tar.bz2 |
Replaced Mouse dragging start+pos combo with a Rect
Diffstat (limited to 'engine/src/Point.cpp')
-rw-r--r-- | engine/src/Point.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/src/Point.cpp b/engine/src/Point.cpp index e01de57..8dd50bd 100644 --- a/engine/src/Point.cpp +++ b/engine/src/Point.cpp @@ -96,5 +96,12 @@ Point::operator!=(const Point& other) const } +Point +abs(const Point& point) +{ + return {std::abs(point.x), std::abs(point.y)}; +} + + } // namespace engine } // namespace kurator |