diff --git a/Source/engine/point.hpp b/Source/engine/point.hpp index e336edeaf..517f529b8 100644 --- a/Source/engine/point.hpp +++ b/Source/engine/point.hpp @@ -88,6 +88,13 @@ struct PointOf { return *this; } + constexpr PointOf &operator/=(const int factor) + { + x /= factor; + y /= factor; + return *this; + } + constexpr PointOf operator-() const { static_assert(std::is_signed::value, "CoordT must be signed");