COIN-OR::LEMON - Graph Library

Changeset 1417:53c2a0ccc9a4 in lemon-0.x


Ignore:
Timestamp:
05/14/05 19:29:28 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1887
Message:

std:: prefix bug corrected

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/demo/graph_to_eps_demo.cc

    r1359 r1417  
    2020#include<lemon/list_graph.h>
    2121#include<lemon/graph_utils.h>
     22
     23#include <cmath>
    2224
    2325
  • src/lemon/graph_to_eps.h

    r1367 r1417  
    1919
    2020#include <sys/time.h>
    21 #include <time.h>
    2221
    2322#include<iostream>
     
    2726#include<vector>
    2827
     28#include <ctime>
     29#include <cmath>
     30
    2931#include<lemon/invalid.h>
    3032#include<lemon/xy.h>
    3133#include<lemon/maps.h>
    3234#include<lemon/bezier.h>
     35
    3336
    3437///\ingroup io_group
     
    810813          sw/=-2.0;
    811814          xy<double> dvec(_coords[g.target(*i)]-_coords[g.source(*i)]);
    812           double l=sqrt(dvec.normSquare());
     815          double l=std::sqrt(dvec.normSquare());
    813816          ///\todo better 'epsilon' would be nice here.
    814817          xy<double> d(dvec/std::max(l,1e-9));
     
    863866              xy<double> dd(rot90(linend-apoint));
    864867              dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/
    865                 sqrt(dd.normSquare());
     868                std::sqrt(dd.normSquare());
    866869              os << "newpath " << psOut(apoint) << " moveto "
    867870                 << psOut(linend+dd) << " lineto "
Note: See TracChangeset for help on using the changeset viewer.