diff options
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 |