diff Core/Images/ImageProcessing.h @ 3265:59a184cbb596

ImagePoint::Set + GetDistanceTo
author Alain Mazy <alain@mazy.be>
date Wed, 20 Feb 2019 14:17:52 +0100
parents 6f652c7bfc85
children ff945b809067
line wrap: on
line diff
--- a/Core/Images/ImageProcessing.h	Wed Feb 20 12:34:33 2019 +0100
+++ b/Core/Images/ImageProcessing.h	Wed Feb 20 14:17:52 2019 +0100
@@ -55,7 +55,16 @@
       }
 
       int32_t GetX() const {return x_;}
+
       int32_t GetY() const {return y_;}
+
+      void Set(int32_t x, int32_t y)
+      {
+        x_ = x;
+        y_ = y;
+      }
+
+      double GetDistanceTo(const ImagePoint& other) const;
     };
 
     void Copy(ImageAccessor& target,