diff options
Diffstat (limited to 'src/point.hpp')
-rw-r--r-- | src/point.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/point.hpp b/src/point.hpp index bd9c66ca..3b164ac3 100644 --- a/src/point.hpp +++ b/src/point.hpp @@ -34,6 +34,9 @@ struct point size_t hash() const; friend Debug& operator<<(Debug& dbg, const point& pt); + static constexpr uint32_t distance(point a, point b); + static constexpr uint32_t distance_l2(point a, point b); + private: int16_t cx = 0, cy = 0; int8_t cz = 0; |