From 654c94e1d312970413e376214b11bd554040d30f Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 21 Apr 2023 22:52:28 +0200 Subject: Replaced Mouse dragging start+pos combo with a Rect --- engine/src/Point.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine/src/Point.cpp') 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 -- cgit v1.1