48 street(&str), position(pos), pos2d(compute2dPosition()) {
53 street(&str), position(randomPositionInStreet(str)), pos2d(compute2dPosition()) {
77 SUMOReal minDist = std::numeric_limits<SUMOReal>::infinity();
79 std::list<AGPosition>::const_iterator itt;
81 for (itt = positions.begin() ; itt != positions.end() ; ++itt) {
83 if (tempDist < minDist) {
93 SUMOReal minDist = std::numeric_limits<SUMOReal>::infinity();
95 std::map<int, AGPosition>::const_iterator itt;
97 for (itt = positions.begin() ; itt != positions.end() ; ++itt) {
99 if (tempDist < minDist) {
132 position2d.
sub(From);
134 position2d.
add(From);