lemon/graph_to_eps.h
changeset 1936 0722ea2b0907
parent 1930 92b70deed0c5
child 1956 a055123339d5
     1.1 --- a/lemon/graph_to_eps.h	Tue Jan 31 20:16:53 2006 +0000
     1.2 +++ b/lemon/graph_to_eps.h	Tue Jan 31 21:14:11 2006 +0000
     1.3 @@ -837,7 +837,7 @@
     1.4  	break;
     1.5        case MALE:
     1.6  	bb.add(-p+mycoords[n]);
     1.7 -	bb.add(xy<double>(1.5*ns,1.5*sqrt(3)*ns)+mycoords[n]);
     1.8 +	bb.add(xy<double>(1.5*ns,1.5*std::sqrt(3.0)*ns)+mycoords[n]);
     1.9  	break;
    1.10        case FEMALE:
    1.11  	bb.add(p+mycoords[n]);
    1.12 @@ -1064,7 +1064,7 @@
    1.13  	    for(int i=0;i<INTERPOL_PREC;++i)
    1.14  	      if(isInsideNode((-(t1+t2)/2)*d,rn,node_shape)) t1=(t1+t2)/2;
    1.15  	      else t2=(t1+t2)/2;
    1.16 -	    double l=sqrt(d.normSquare());
    1.17 +	    double l=std::sqrt(d.normSquare());
    1.18  	    d/=l;
    1.19  	    
    1.20  	    os << l*(1-(t1+t2)/2) << ' '