diff options
Diffstat (limited to 'src/point.hpp')
-rw-r--r-- | src/point.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/point.hpp b/src/point.hpp index 6d3caf72..285d2f30 100644 --- a/src/point.hpp +++ b/src/point.hpp @@ -38,6 +38,8 @@ struct point static constexpr uint32_t distance(point a, point b); static constexpr uint32_t distance_l2(point a, point b); + friend constexpr Vector2i operator-(const point& p1, const point& p2); + private: int16_t cx = 0, cy = 0; int8_t cz = 0; |