diff Framework/Scene2D/ScenePoint2D.h @ 866:c71ef52602a0 toa2019062501

Added the ability to edit existing measuring tools (demo not updated yet)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 25 Jun 2019 17:54:46 +0200
parents a29c13497557
children 240359ab1651
line wrap: on
line diff
--- a/Framework/Scene2D/ScenePoint2D.h	Tue Jun 25 15:24:13 2019 +0200
+++ b/Framework/Scene2D/ScenePoint2D.h	Tue Jun 25 17:54:46 2019 +0200
@@ -73,6 +73,15 @@
       return v;
     }
 
+    const ScenePoint2D operator+(const ScenePoint2D& a) const
+    {
+      ScenePoint2D v;
+      v.x_ = x_ + a.x_;
+      v.y_ = y_ + a.y_;
+
+      return v;
+    }
+
     const ScenePoint2D operator*(double a) const
     {
       ScenePoint2D v;