17 bool up=
false, down=
false;
18 x1 = nodeID>>16; y1 = nodeID&0xFFFF;
22 neighbors.push_back((x1<<16)|(y1+1));
27 neighbors.push_back((x1<<16)|(y1-1));
32 neighbors.push_back(((x1-1)<<16)|(y1-1));
34 neighbors.push_back(((x1-1)<<16)|(y1+1));
35 neighbors.push_back(((x1-1)<<16)| y1);
40 neighbors.push_back(((x1+1)<<16)|(y1-1));
42 neighbors.push_back(((x1+1)<<16)|(y1+1));
43 neighbors.push_back(((x1+1)<<16)| y1);
55 x1 = node1>>16; y1 = node1&0xFFFF;
56 x2 = node2>>16; y2 = node2&0xFFFF;
57 double a = ((x1>x2)?(x1-x2):(x2-x1));
58 double b = ((y1>y2)?(y1-y2):(y2-y1));
72 neighbors.push_back(next);
105 neighbors.push_back(e->getTo());
120 double a = ((x1>x2)?(x1-x2):(x2-x1));
121 double b = ((y1>y2)?(y1-y2):(y2-y1));