diff -r cb26a6250401 -r da44ee225dad src/lemon/graph_to_eps.h --- a/src/lemon/graph_to_eps.h Sun Mar 06 21:20:49 2005 +0000 +++ b/src/lemon/graph_to_eps.h Mon Mar 07 07:53:20 2005 +0000 @@ -157,7 +157,6 @@ ///Returns black for light colors and white for the dark ones. ///\todo weighted average would be better inline Color distantBW(const Color &c){ - // double v=(c.getR()+c.getG()+c.getB())<1.5?1:0; double v=(.2125*c.getR()+.7154*c.getG()+.0721*c.getB())<.5?1:0; return Color(v,v,v); } @@ -327,10 +326,6 @@ return (g.source(e)==g.source(f)&&g.target(e)==g.target(f))|| (g.source(e)==g.target(f)&&g.target(e)==g.source(f)); } - static xy rot(xy v) - { - return xy(v.y,-v.x); - } template static std::string psOut(const xy &p) { @@ -775,7 +770,7 @@ for(typename std::vector::iterator e=i;e!=j;++e) { sw+=_edgeWidths[*e]*_edgeWidthScale/2.0; - xy mm=m+rot(d)*sw/.75; + xy mm=m+rot90(d)*sw/.75; if(_drawArrows) { int node_shape; xy s=_coords[g.source(*e)]; @@ -811,7 +806,7 @@ << bez.p2.x << ' ' << bez.p2.y << ' ' << bez.p3.x << ' ' << bez.p3.y << ' ' << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n"; - xy dd(rot(linend-apoint)); + xy dd(rot90(linend-apoint)); dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ sqrt(dd.normSquare()); os << "newpath " << psOut(apoint) << " moveto "