Changeset 3719:c1e860b79d73 in orange


Ignore:
Timestamp:
06/02/07 23:31:25 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
cca36bf45654cd1aac23f7d581e70e3af2b64cb0
Message:
  • changed abs to fabs (gcc complained about it)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeom/networkoptimization.cpp

    r3708 r3719  
    195195                dif = 1; 
    196196 
    197             pos[v][0] = pos[v][0] + (disp[v][0] * min(abs(disp[v][0]), temperature) / dif); 
    198             pos[v][1] = pos[v][1] + (disp[v][1] * min(abs(disp[v][1]), temperature) / dif); 
     197            pos[v][0] = pos[v][0] + (disp[v][0] * min(fabs(disp[v][0]), temperature) / dif); 
     198            pos[v][1] = pos[v][1] + (disp[v][1] * min(fabs(disp[v][1]), temperature) / dif); 
    199199 
    200200            //pos[v][0] = min((double)width,  max((double)0, pos[v][0])); 
Note: See TracChangeset for help on using the changeset viewer.