1.1 --- a/src/lemon/graph_to_eps.h Sun Mar 06 21:20:49 2005 +0000
1.2 +++ b/src/lemon/graph_to_eps.h Mon Mar 07 07:53:20 2005 +0000
1.3 @@ -157,7 +157,6 @@
1.4 ///Returns black for light colors and white for the dark ones.
1.5 ///\todo weighted average would be better
1.6 inline Color distantBW(const Color &c){
1.7 - // double v=(c.getR()+c.getG()+c.getB())<1.5?1:0;
1.8 double v=(.2125*c.getR()+.7154*c.getG()+.0721*c.getB())<.5?1:0;
1.9 return Color(v,v,v);
1.10 }
1.11 @@ -327,10 +326,6 @@
1.12 return (g.source(e)==g.source(f)&&g.target(e)==g.target(f))||
1.13 (g.source(e)==g.target(f)&&g.target(e)==g.source(f));
1.14 }
1.15 - static xy<double> rot(xy<double> v)
1.16 - {
1.17 - return xy<double>(v.y,-v.x);
1.18 - }
1.19 template<class TT>
1.20 static std::string psOut(const xy<TT> &p)
1.21 {
1.22 @@ -775,7 +770,7 @@
1.23
1.24 for(typename std::vector<Edge>::iterator e=i;e!=j;++e) {
1.25 sw+=_edgeWidths[*e]*_edgeWidthScale/2.0;
1.26 - xy<double> mm=m+rot(d)*sw/.75;
1.27 + xy<double> mm=m+rot90(d)*sw/.75;
1.28 if(_drawArrows) {
1.29 int node_shape;
1.30 xy<double> s=_coords[g.source(*e)];
1.31 @@ -811,7 +806,7 @@
1.32 << bez.p2.x << ' ' << bez.p2.y << ' '
1.33 << bez.p3.x << ' ' << bez.p3.y << ' '
1.34 << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n";
1.35 - xy<double> dd(rot(linend-apoint));
1.36 + xy<double> dd(rot90(linend-apoint));
1.37 dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/
1.38 sqrt(dd.normSquare());
1.39 os << "newpath " << psOut(apoint) << " moveto "