Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
865:a29c13497557 | 866:c71ef52602a0 |
---|---|
71 v.y_ = y_ - a.y_; | 71 v.y_ = y_ - a.y_; |
72 | 72 |
73 return v; | 73 return v; |
74 } | 74 } |
75 | 75 |
76 const ScenePoint2D operator+(const ScenePoint2D& a) const | |
77 { | |
78 ScenePoint2D v; | |
79 v.x_ = x_ + a.x_; | |
80 v.y_ = y_ + a.y_; | |
81 | |
82 return v; | |
83 } | |
84 | |
76 const ScenePoint2D operator*(double a) const | 85 const ScenePoint2D operator*(double a) const |
77 { | 86 { |
78 ScenePoint2D v; | 87 ScenePoint2D v; |
79 v.x_ = x_ * a; | 88 v.x_ = x_ * a; |
80 v.y_ = y_ * a; | 89 v.y_ = y_ * a; |