Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [amalia@localhost LibreCAD]$ git diff
- diff --git a/librecad/src/lib/engine/lc_hyperbola.cpp b/librecad/src/lib/engine/lc_hyperbola.cpp
- index b24eecd..2b3d8f5 100644
- --- a/librecad/src/lib/engine/lc_hyperbola.cpp
- +++ b/librecad/src/lib/engine/lc_hyperbola.cpp
- @@ -200,3 +200,10 @@ std::ostream& operator << (std::ostream& os, const LC_Hyperbola& a) {
- return os;
- }
- +//
- +virtual RS_VectorSolutions getTangentPoint(const RS_Vector& point) const {
- +
- +RS_Vector P(point);
- +RS_VectorSolutions solutions;
- +
- +}
- diff --git a/librecad/src/lib/engine/lc_hyperbola.h b/librecad/src/lib/engine/lc_hyperbola.h
- index 746f288..44985b5 100644
- --- a/librecad/src/lib/engine/lc_hyperbola.h
- +++ b/librecad/src/lib/engine/lc_hyperbola.h
- @@ -229,7 +229,7 @@ public:
- virtual void scale(const RS_Vector& /*center*/, const RS_Vector& /*factor*/){}
- virtual void mirror(const RS_Vector& /*axisPoint1*/, const RS_Vector& /*axisPoint2*/){}
- virtual void moveRef(const RS_Vector& /*ref*/, const RS_Vector& /*offset*/){}
- -
- + virtual RS_VectorSolutions getTangentPoint(const RS_Vector& point) const; //find the tangential points from given point
- virtual void draw(RS_Painter* /*painter*/, RS_GraphicView* /*view*/, double& /*patternOffset*/){}
- friend std::ostream& operator << (std::ostream& os, const LC_Hyperbola& a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement