X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcurveset.cpp;h=e8bd7fab3d3fb74985432d442fa12d998b121534;hb=1c50ac93386f490d32d4ca36d57b9b1901fb873c;hp=4b7302f3e40601b8a9c3c372d3c47dd3f61eb96c;hpb=f2a36e5791a1d7f3bd973742785b3b93619d3bad;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/curveset.cpp b/synfig-core/trunk/src/synfig/curveset.cpp index 4b7302f..e8bd7fa 100644 --- a/synfig-core/trunk/src/synfig/curveset.cpp +++ b/synfig-core/trunk/src/synfig/curveset.cpp @@ -104,7 +104,7 @@ struct ipoint }else return curveindex < rhs.curveindex; } - bool operator >(const ipoint &rhs) const + bool operator>(const ipoint &rhs) const { return rhs < *this; } @@ -436,7 +436,7 @@ void CurveSet::CleanUp(int /*curve*/) Performance annoyances: 1) Recursing down to find an intersection at the end points that doesn't actually exist - (can be helped a bit by not including the edges of bounding rectaingles) + (can be helped a bit by not including the edges of bounding rectangles) 2) Intersecting curves is slow... oh well Algorithm: @@ -446,17 +446,17 @@ void CurveSet::CleanUp(int /*curve*/) - only works with odd-even rule */ -CurveSet CurveSet::operator &(const CurveSet &/*rhs*/) const +CurveSet CurveSet::operator&(const CurveSet &/*rhs*/) const { return *this; } -CurveSet CurveSet::operator |(const CurveSet &/*rhs*/) const +CurveSet CurveSet::operator|(const CurveSet &/*rhs*/) const { return *this; } -CurveSet CurveSet::operator -(const CurveSet &/*rhs*/) const +CurveSet CurveSet::operator-(const CurveSet &/*rhs*/) const { return *this; }