Changeset 1417:53c2a0ccc9a4 in lemon-0.x
- Timestamp:
- 05/14/05 19:29:28 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1887
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/graph_to_eps_demo.cc
r1359 r1417 20 20 #include<lemon/list_graph.h> 21 21 #include<lemon/graph_utils.h> 22 23 #include <cmath> 22 24 23 25 -
src/lemon/graph_to_eps.h
r1367 r1417 19 19 20 20 #include <sys/time.h> 21 #include <time.h>22 21 23 22 #include<iostream> … … 27 26 #include<vector> 28 27 28 #include <ctime> 29 #include <cmath> 30 29 31 #include<lemon/invalid.h> 30 32 #include<lemon/xy.h> 31 33 #include<lemon/maps.h> 32 34 #include<lemon/bezier.h> 35 33 36 34 37 ///\ingroup io_group … … 810 813 sw/=-2.0; 811 814 xy<double> dvec(_coords[g.target(*i)]-_coords[g.source(*i)]); 812 double l=s qrt(dvec.normSquare());815 double l=std::sqrt(dvec.normSquare()); 813 816 ///\todo better 'epsilon' would be nice here. 814 817 xy<double> d(dvec/std::max(l,1e-9)); … … 863 866 xy<double> dd(rot90(linend-apoint)); 864 867 dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ 865 s qrt(dd.normSquare());868 std::sqrt(dd.normSquare()); 866 869 os << "newpath " << psOut(apoint) << " moveto " 867 870 << psOut(linend+dd) << " lineto "
Note: See TracChangeset
for help on using the changeset viewer.