Advertisement
Guest User

git_diff_1506215

a guest
Jun 15th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.32 KB | None | 0 0
  1. [amalia@localhost LibreCAD]$ git diff
  2. diff --git a/librecad/src/lib/engine/lc_hyperbola.cpp b/librecad/src/lib/engine/lc_hyperbola.cpp
  3. index b24eecd..2b3d8f5 100644
  4. --- a/librecad/src/lib/engine/lc_hyperbola.cpp
  5. +++ b/librecad/src/lib/engine/lc_hyperbola.cpp
  6. @@ -200,3 +200,10 @@ std::ostream& operator << (std::ostream& os, const LC_Hyperbola& a) {
  7.      return os;
  8.  }
  9.  
  10. +//
  11. +virtual RS_VectorSolutions getTangentPoint(const RS_Vector& point) const {
  12. +
  13. +RS_Vector P(point);
  14. +RS_VectorSolutions solutions;
  15. +
  16. +}
  17. diff --git a/librecad/src/lib/engine/lc_hyperbola.h b/librecad/src/lib/engine/lc_hyperbola.h
  18. index 746f288..44985b5 100644
  19. --- a/librecad/src/lib/engine/lc_hyperbola.h
  20. +++ b/librecad/src/lib/engine/lc_hyperbola.h
  21. @@ -229,7 +229,7 @@ public:
  22.      virtual void scale(const RS_Vector& /*center*/, const RS_Vector& /*factor*/){}
  23.      virtual void mirror(const RS_Vector& /*axisPoint1*/, const RS_Vector& /*axisPoint2*/){}
  24.      virtual void moveRef(const RS_Vector& /*ref*/, const RS_Vector& /*offset*/){}
  25. -
  26. +    virtual RS_VectorSolutions getTangentPoint(const RS_Vector& point) const; //find the tangential points from given point
  27.      virtual void draw(RS_Painter* /*painter*/, RS_GraphicView* /*view*/, double& /*patternOffset*/){}
  28.  
  29.      friend std::ostream& operator << (std::ostream& os, const LC_Hyperbola& a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement