Path: fix assignment operator of CLine

* Assignment operator in class CLine should have return type CLine&. Otherwise a copy is created at each call.
This commit is contained in:
wmayer
2022-03-20 19:32:32 +01:00
parent 5273b2034f
commit ae9acd6a78

View File

@@ -448,7 +448,7 @@ inline bool FNEZ(double a, double tolerance = TIGHT_TOLERANCE) {return fabs(a) >
// operators
const CLine operator~(void);// perp to left
const CLine operator=(const Point& p0){p.x=p0.x; p.y=p0.y; return *this;}; // s = p;
const CLine& operator=(const Point& p0){p.x=p0.x; p.y=p0.y; return *this;}; // s = p;
// methods
double c(); // returns c